Andrew Geissler | 56fcdec | 2020-06-08 21:33:52 -0500 | [diff] [blame] | 1 | #include <sdbusplus/asio/object_server.hpp> |
2 | #include <sdbusplus/bus.hpp> | ||||
3 | |||||
4 | #include <gtest/gtest.h> | ||||
5 | |||||
6 | constexpr auto this_name = "xyz.openbmc_project.sdbusplus.test.Aio"; | ||||
7 | |||||
8 | TEST(AioTest, BasicTest) | ||||
9 | { | ||||
10 | boost::asio::io_service io; | ||||
11 | auto systemBus = std::make_shared<sdbusplus::asio::connection>(io); | ||||
12 | EXPECT_NE(nullptr, systemBus); | ||||
13 | |||||
14 | systemBus->request_name(this_name); | ||||
15 | sdbusplus::asio::object_server objectServer(systemBus); | ||||
16 | } |