Ed Tanous | 3edbe5c | 2023-02-28 13:39:53 -0800 | [diff] [blame] | 1 | #include <boost/asio/io_context.hpp> |
Andrew Geissler | 56fcdec | 2020-06-08 21:33:52 -0500 | [diff] [blame] | 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 | { |
Ed Tanous | 3edbe5c | 2023-02-28 13:39:53 -0800 | [diff] [blame] | 11 | boost::asio::io_context io; |
Andrew Geissler | 56fcdec | 2020-06-08 21:33:52 -0500 | [diff] [blame] | 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 | } |