Lines Matching defs:TestService
28 const int TestService::kNumMethodsToExport = 9;
30 TestService::Options::Options()
34 TestService::Options::~Options() {
37 TestService::TestService(const Options& options)
38 : base::Thread("TestService"),
45 TestService::~TestService() {
49 bool TestService::StartService() {
55 bool TestService::WaitUntilServiceIsStarted() {
61 void TestService::ShutdownAndBlock() {
64 base::Bind(&TestService::ShutdownAndBlockInternal,
68 bool TestService::HasDBusThread() {
72 void TestService::ShutdownAndBlockInternal() {
79 void TestService::SendTestSignal(const std::string& message) {
82 base::Bind(&TestService::SendTestSignalInternal,
87 void TestService::SendTestSignalFromRoot(const std::string& message) {
90 base::Bind(&TestService::SendTestSignalFromRootInternal,
95 void TestService::SendTestSignalInternal(const std::string& message) {
102 void TestService::SendTestSignalFromRootInternal(const std::string& message) {
107 bus_->RequestOwnership("org.chromium.TestService",
109 base::Bind(&TestService::OnOwnership,
118 void TestService::RequestOwnership(base::Callback<void(bool)> callback) {
121 base::Bind(&TestService::RequestOwnershipInternal,
126 void TestService::RequestOwnershipInternal(
128 bus_->RequestOwnership("org.chromium.TestService",
130 base::Bind(&TestService::OnOwnership,
135 void TestService::OnOwnership(base::Callback<void(bool)> callback,
143 void TestService::OnExported(const std::string& interface_name,
159 void TestService::Run(base::MessageLoop* message_loop) {
166 bus_->RequestOwnership("org.chromium.TestService",
168 base::Bind(&TestService::OnOwnership,
179 base::Bind(&TestService::Echo,
181 base::Bind(&TestService::OnExported,
188 base::Bind(&TestService::SlowEcho,
190 base::Bind(&TestService::OnExported,
197 base::Bind(&TestService::AsyncEcho,
199 base::Bind(&TestService::OnExported,
206 base::Bind(&TestService::BrokenMethod,
208 base::Bind(&TestService::OnExported,
215 base::Bind(&TestService::PerformAction,
217 base::Bind(&TestService::OnExported,
224 base::Bind(&TestService::GetAllProperties,
226 base::Bind(&TestService::OnExported,
233 base::Bind(&TestService::GetProperty,
235 base::Bind(&TestService::OnExported,
242 base::Bind(&TestService::SetProperty,
244 base::Bind(&TestService::OnExported,
249 ObjectPath("/org/chromium/TestService"));
254 base::Bind(&TestService::GetManagedObjects,
256 base::Bind(&TestService::OnExported,
268 void TestService::Echo(MethodCall* method_call,
283 void TestService::SlowEcho(MethodCall* method_call,
289 void TestService::AsyncEcho(MethodCall* method_call,
293 base::Bind(&TestService::Echo,
300 void TestService::BrokenMethod(MethodCall* method_call,
306 void TestService::GetAllProperties(
324 void TestService::GetProperty(MethodCall* method_call,
341 // Variant<"TestService">
345 writer.AppendVariantOfString("TestService");
397 void TestService::SetProperty(MethodCall* method_call,
428 void TestService::PerformAction(
448 void TestService::GetManagedObjects(
491 void TestService::AddPropertiesToWriter(MessageWriter* writer) {
497 // "Name": Variant<"TestService">,
512 dict_entry_writer.AppendVariantOfString("TestService");
544 void TestService::AddObject(const ObjectPath& object_path) {
547 base::Bind(&TestService::AddObjectInternal,
552 void TestService::AddObjectInternal(const ObjectPath& object_path) {
570 void TestService::RemoveObject(const ObjectPath& object_path) {
572 base::Bind(&TestService::RemoveObjectInternal,
577 void TestService::RemoveObjectInternal(const ObjectPath& object_path) {
590 void TestService::SendPropertyChangedSignal(const std::string& name) {
593 base::Bind(&TestService::SendPropertyChangedSignalInternal,
598 void TestService::SendPropertyChangedSignalInternal(const std::string& name) {