summaryrefslogtreecommitdiffstats
path: root/dbus/test_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/test_service.h')
-rw-r--r--dbus/test_service.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbus/test_service.h b/dbus/test_service.h
index 871aed6..17f27ca 100644
--- a/dbus/test_service.h
+++ b/dbus/test_service.h
@@ -65,6 +65,9 @@ class TestService : public base::Thread {
// This function emulates dbus-send's behavior.
void SendTestSignalFromRoot(const std::string& message);
+ // Request the ownership of a well-known name "TestService".
+ void RequestOwnership();
+
private:
// Helper function for SendTestSignal().
void SendTestSignalInternal(const std::string& message);
@@ -127,6 +130,9 @@ class TestService : public base::Thread {
// Helper function for SendPropertyChangedSignal().
void SendPropertyChangedSignalInternal(const std::string& name);
+ // Helper function for RequestOwnership().
+ void RequestOwnershipInternal();
+
scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy_;
base::WaitableEvent on_all_methods_exported_;
// The number of methods actually exported.