xref: /openbmc/sdbusplus/test/bus/aio.cpp (revision 3edbe5c0)
1*3edbe5c0SEd Tanous #include <boost/asio/io_context.hpp>
256fcdec5SAndrew Geissler #include <sdbusplus/asio/object_server.hpp>
356fcdec5SAndrew Geissler #include <sdbusplus/bus.hpp>
456fcdec5SAndrew Geissler 
556fcdec5SAndrew Geissler #include <gtest/gtest.h>
656fcdec5SAndrew Geissler 
756fcdec5SAndrew Geissler constexpr auto this_name = "xyz.openbmc_project.sdbusplus.test.Aio";
856fcdec5SAndrew Geissler 
TEST(AioTest,BasicTest)956fcdec5SAndrew Geissler TEST(AioTest, BasicTest)
1056fcdec5SAndrew Geissler {
11*3edbe5c0SEd Tanous     boost::asio::io_context io;
1256fcdec5SAndrew Geissler     auto systemBus = std::make_shared<sdbusplus::asio::connection>(io);
1356fcdec5SAndrew Geissler     EXPECT_NE(nullptr, systemBus);
1456fcdec5SAndrew Geissler 
1556fcdec5SAndrew Geissler     systemBus->request_name(this_name);
1656fcdec5SAndrew Geissler     sdbusplus::asio::object_server objectServer(systemBus);
1756fcdec5SAndrew Geissler }
18