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

Side by Side Diff: dbus/test_service.h

Issue 9668018: dbus: remove service name from ExportedObject (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pay more attention when fixing mock Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dbus/mock_exported_object.cc ('k') | dbus/test_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DBUS_TEST_SERVICE_H_ 5 #ifndef DBUS_TEST_SERVICE_H_
6 #define DBUS_TEST_SERVICE_H_ 6 #define DBUS_TEST_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 private: 69 private:
70 // Helper function for SendTestSignal(). 70 // Helper function for SendTestSignal().
71 void SendTestSignalInternal(const std::string& message); 71 void SendTestSignalInternal(const std::string& message);
72 72
73 // Helper function for SendTestSignalFromRoot. 73 // Helper function for SendTestSignalFromRoot.
74 void SendTestSignalFromRootInternal(const std::string& message); 74 void SendTestSignalFromRootInternal(const std::string& message);
75 75
76 // Helper function for ShutdownAndBlock(). 76 // Helper function for ShutdownAndBlock().
77 void ShutdownAndBlockInternal(); 77 void ShutdownAndBlockInternal();
78 78
79 // Called when an ownership request is completed.
80 void OnOwnership(const std::string& service_name,
81 bool success);
82
79 // Called when a method is exported. 83 // Called when a method is exported.
80 void OnExported(const std::string& interface_name, 84 void OnExported(const std::string& interface_name,
81 const std::string& method_name, 85 const std::string& method_name,
82 bool success); 86 bool success);
83 87
84 // base::Thread override. 88 // base::Thread override.
85 virtual void Run(MessageLoop* message_loop) OVERRIDE; 89 virtual void Run(MessageLoop* message_loop) OVERRIDE;
86 90
87 // 91 //
88 // Exported methods. 92 // Exported methods.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // The number of methods actually exported. 133 // The number of methods actually exported.
130 int num_exported_methods_; 134 int num_exported_methods_;
131 135
132 scoped_refptr<Bus> bus_; 136 scoped_refptr<Bus> bus_;
133 ExportedObject* exported_object_; 137 ExportedObject* exported_object_;
134 }; 138 };
135 139
136 } // namespace dbus 140 } // namespace dbus
137 141
138 #endif // DBUS_TEST_SERVICE_H_ 142 #endif // DBUS_TEST_SERVICE_H_
OLDNEW
« no previous file with comments | « dbus/mock_exported_object.cc ('k') | dbus/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698