diff options
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/mock_bus.h | 4 | ||||
-rw-r--r-- | dbus/mock_exported_object.h | 4 | ||||
-rw-r--r-- | dbus/mock_object_proxy.h | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/dbus/mock_bus.h b/dbus/mock_bus.h index bc25fb6..6a228a6 100644 --- a/dbus/mock_bus.h +++ b/dbus/mock_bus.h @@ -18,7 +18,6 @@ namespace dbus { class MockBus : public Bus { public: MockBus(Bus::Options& options); - virtual ~MockBus(); MOCK_METHOD2(GetObjectProxy, ObjectProxy*(const std::string& service_name, const ObjectPath& object_path)); @@ -71,6 +70,9 @@ class MockBus : public Bus { MOCK_METHOD0(HasDBusThread, bool()); MOCK_METHOD0(AssertOnOriginThread, void()); MOCK_METHOD0(AssertOnDBusThread, void()); + + protected: + virtual ~MockBus(); }; } // namespace dbus diff --git a/dbus/mock_exported_object.h b/dbus/mock_exported_object.h index 07b2f00..e57a83a 100644 --- a/dbus/mock_exported_object.h +++ b/dbus/mock_exported_object.h @@ -19,7 +19,6 @@ class MockExportedObject : public ExportedObject { public: MockExportedObject(Bus* bus, const ObjectPath& object_path); - virtual ~MockExportedObject(); MOCK_METHOD3(ExportMethodAndBlock, bool(const std::string& interface_name, @@ -32,6 +31,9 @@ class MockExportedObject : public ExportedObject { OnExportedCallback on_exported_callback)); MOCK_METHOD1(SendSignal, void(Signal* signal)); MOCK_METHOD0(Unregister, void()); + + protected: + virtual ~MockExportedObject(); }; } // namespace dbus diff --git a/dbus/mock_object_proxy.h b/dbus/mock_object_proxy.h index ff0dcff..1383232 100644 --- a/dbus/mock_object_proxy.h +++ b/dbus/mock_object_proxy.h @@ -20,7 +20,6 @@ class MockObjectProxy : public ObjectProxy { MockObjectProxy(Bus* bus, const std::string& service_name, const ObjectPath& object_path); - virtual ~MockObjectProxy(); MOCK_METHOD2(CallMethodAndBlock, Response*(MethodCall* method_call, int timeout_ms)); @@ -37,6 +36,9 @@ class MockObjectProxy : public ObjectProxy { SignalCallback signal_callback, OnConnectedCallback on_connected_callback)); MOCK_METHOD0(Detach, void()); + + protected: + virtual ~MockObjectProxy(); }; } // namespace dbus |