Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1390)

Unified Diff: dbus/test_service.h

Issue 12491014: Support D-Bus Object Manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Insufficient entrails in my offering Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dbus/property_unittest.cc ('k') | dbus/test_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/test_service.h
diff --git a/dbus/test_service.h b/dbus/test_service.h
index 562e7c441d3bfa1c7924817018dd841ee0568e38..b9e14b55d1572087aa0235182971a1a54ccbd3cd 100644
--- a/dbus/test_service.h
+++ b/dbus/test_service.h
@@ -19,6 +19,7 @@ namespace dbus {
class Bus;
class MethodCall;
+class MessageWriter;
class Response;
// The test service is used for end-to-end tests. The service runs in a
@@ -134,6 +135,25 @@ class TestService : public base::Thread {
void SetProperty(MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender);
+ // Performs an action for testing.
+ void PerformAction(MethodCall* method_call,
+ dbus::ExportedObject::ResponseSender response_sender);
+
+ // Object Manager: returns the set of objects and properties.
+ void GetManagedObjects(MethodCall* method_call,
+ dbus::ExportedObject::ResponseSender response_sender);
+
+ // Add a properties dictionary to a message writer.
+ void AddPropertiesToWriter(MessageWriter* writer);
+
+ // Add a new object to the manager.
+ void AddObject(const dbus::ObjectPath& object_path);
+ void AddObjectInternal(const dbus::ObjectPath& object_path);
+
+ // Remove an object from the manager.
+ void RemoveObject(const dbus::ObjectPath& object_path);
+ void RemoveObjectInternal(const dbus::ObjectPath& object_path);
+
// Sends a property changed signal for the name property.
void SendPropertyChangedSignal(const std::string& name);
@@ -153,6 +173,7 @@ class TestService : public base::Thread {
scoped_refptr<Bus> bus_;
ExportedObject* exported_object_;
+ ExportedObject* exported_object_manager_;
};
} // namespace dbus
« no previous file with comments | « dbus/property_unittest.cc ('k') | dbus/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698