Provide better names to event loop-related IConnection methods

This commit is contained in:
sangelovic committed 2020-02-02 22:22:26 +01:00
1 parent dee6adce02
commit 3a4f343fb9
13 files changed
+128 -66

No files matched your search

@@ -62,12 +62,12 @@ public:
static void SetUpTestCase()
{
s_connection->requestName(INTERFACE_NAME);
s_connection->enterProcessingLoopAsync();
s_connection->enterEventLoopAsync();
}
static void TearDownTestCase()
{
s_connection->leaveProcessingLoop();
s_connection->leaveEventLoop();
s_connection->releaseName(INTERFACE_NAME);
}
+3 -3
View File
@@ -78,13 +78,13 @@ TEST(Connection, CannotReleaseNonrequestedName)
ASSERT_THROW(connection->releaseName("some.random.nonrequested.name"), sdbus::Error);
}
TEST(Connection, CanEnterAndLeaveProcessingLoop)
TEST(Connection, CanEnterAndLeaveEventLoop)
{
auto connection = sdbus::createConnection();
connection->requestName(INTERFACE_NAME);
std::thread t([&](){ connection->enterProcessingLoop(); });
connection->leaveProcessingLoop();
std::thread t([&](){ connection->enterEventLoop(); });
connection->leaveEventLoop();
t.join();