1 #include <boost/asio/io_context.hpp> 2 #include <sdbusplus/asio/object_server.hpp> 3 #include <sdbusplus/bus.hpp> 4 5 #include <gtest/gtest.h> 6 7 constexpr auto this_name = "xyz.openbmc_project.sdbusplus.test.Aio"; 8 9 TEST(AioTest, BasicTest) 10 { 11 boost::asio::io_context io; 12 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 } 18