diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-04-21 09:19:25 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2016-04-21 09:19:25 -0500 |
commit | 3b84a37b2caae0c7c971b3c7cc5df9be1319a5ac (patch) | |
tree | 32a366f19b3577792b3e7122429e90bc244c1adc /tests/unit | |
parent | e1c1a9ae367c53561cdb4f53ad8589e2bc859b0b (diff) | |
download | ayatana-indicator-display-3b84a37b2caae0c7c971b3c7cc5df9be1319a5ac.tar.gz ayatana-indicator-display-3b84a37b2caae0c7c971b3c7cc5df9be1319a5ac.tar.bz2 ayatana-indicator-display-3b84a37b2caae0c7c971b3c7cc5df9be1319a5ac.zip |
don't pass a GDBusConnection to the Greeter ctor
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/greeter-test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/greeter-test.cpp b/tests/unit/greeter-test.cpp index 5d29023..874efed 100644 --- a/tests/unit/greeter-test.cpp +++ b/tests/unit/greeter-test.cpp @@ -41,7 +41,7 @@ protected: std::shared_ptr<QtDBusTest::DBusTestRunner> m_dbus_runner; std::shared_ptr<QtDBusMock::DBusMock> m_dbus_mock; - GDBusConnection* m_session_bus; + GDBusConnection* m_session_bus {}; void SetUp() override { @@ -111,7 +111,7 @@ TEST_F(GreeterFixture, ActiveServiceStartsBeforeWatcher) start_greeter_service(expected); - UnityGreeter greeter(m_session_bus); + UnityGreeter greeter; ASSERT_PROPERTY_EVENTUALLY(expected, greeter.is_active()); } @@ -120,7 +120,7 @@ TEST_F(GreeterFixture, WatcherStartsBeforeActiveService) { constexpr bool expected {true}; - UnityGreeter greeter(m_session_bus); + UnityGreeter greeter; start_greeter_service(expected); @@ -133,7 +133,7 @@ TEST_F(GreeterFixture, InactiveServiceStartsBeforeWatcher) start_greeter_service(expected); - UnityGreeter greeter(m_session_bus); + UnityGreeter greeter; ASSERT_PROPERTY_EVENTUALLY(expected, greeter.is_active()); } @@ -142,7 +142,7 @@ TEST_F(GreeterFixture, WatcherStartsBeforeInactiveService) { constexpr bool expected {false}; - UnityGreeter greeter(m_session_bus); + UnityGreeter greeter; start_greeter_service(expected); |