blob: 15cbfb259ca0c42dba6b32f05685abaab16e2a30 [file] [log] [blame]
Ed Tanous3edbe5c2023-02-28 13:39:53 -08001#include <boost/asio/io_context.hpp>
Andrew Geissler56fcdec2020-06-08 21:33:52 -05002#include <sdbusplus/asio/object_server.hpp>
3#include <sdbusplus/bus.hpp>
4
5#include <gtest/gtest.h>
6
7constexpr auto this_name = "xyz.openbmc_project.sdbusplus.test.Aio";
8
9TEST(AioTest, BasicTest)
10{
Ed Tanous3edbe5c2023-02-28 13:39:53 -080011 boost::asio::io_context io;
Andrew Geissler56fcdec2020-06-08 21:33:52 -050012 auto systemBus = std::make_shared<sdbusplus::asio::connection>(io);
13 EXPECT_NE(nullptr, systemBus);
14
15 systemBus->request_name(this_name);
16 sdbusplus::asio::object_server objectServer(systemBus);
17}