| Index: dbus/test_service.h
|
| diff --git a/dbus/test_service.h b/dbus/test_service.h
|
| index de4aa720ac76a931ebf4811c89c966484aae037a..e2ed480e9d340ee2c91395e52e03b15bb094688a 100644
|
| --- a/dbus/test_service.h
|
| +++ b/dbus/test_service.h
|
| @@ -40,6 +40,9 @@ class TestService : public base::Thread {
|
|
|
| // Flags governing parameters of service ownership request.
|
| Bus::ServiceOwnershipOptions request_ownership_options;
|
| +
|
| + // Name of this service (randomly generated name will be used if empty).
|
| + std::string service_name;
|
| };
|
|
|
| // The number of methods we'll export.
|
| @@ -78,6 +81,9 @@ class TestService : public base::Thread {
|
| // |callback| will be called when the ownership has been released.
|
| void ReleaseOwnership(base::Closure callback);
|
|
|
| + // Returns the name of this service.
|
| + const std::string& service_name() const { return service_name_; }
|
| +
|
| // Returns whether this instance has the name ownership or not.
|
| bool has_ownership() const { return has_ownership_; }
|
|
|
| @@ -199,6 +205,9 @@ class TestService : public base::Thread {
|
| dbus::ExportedObject::ResponseSender response_sender,
|
| bool success);
|
|
|
| + // Name of this service.
|
| + std::string service_name_;
|
| +
|
| // Options to use when requesting service ownership.
|
| Bus::ServiceOwnershipOptions request_ownership_options_;
|
|
|
|
|