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

Side by Side Diff: dbus/test_service.h

Issue 8684001: Add OVERRIDE to base/, dbus/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « base/message_pump_glib.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Helper function for ShutdownAndBlock(). 76 // Helper function for ShutdownAndBlock().
77 void ShutdownAndBlockInternal(); 77 void ShutdownAndBlockInternal();
78 78
79 // Called when a method is exported. 79 // Called when a method is exported.
80 void OnExported(const std::string& interface_name, 80 void OnExported(const std::string& interface_name,
81 const std::string& method_name, 81 const std::string& method_name,
82 bool success); 82 bool success);
83 83
84 // base::Thread override. 84 // base::Thread override.
85 virtual void Run(MessageLoop* message_loop); 85 virtual void Run(MessageLoop* message_loop) OVERRIDE;
86 86
87 // 87 //
88 // Exported methods. 88 // Exported methods.
89 // 89 //
90 90
91 // Echos the text message received from the method call. 91 // Echos the text message received from the method call.
92 Response* Echo(MethodCall* method_call); 92 Response* Echo(MethodCall* method_call);
93 93
94 // Echos the text message received from the method call, but sleeps for 94 // Echos the text message received from the method call, but sleeps for
95 // TestTimeouts::tiny_timeout_ms() before returning the response. 95 // TestTimeouts::tiny_timeout_ms() before returning the response.
96 Response* SlowEcho(MethodCall* method_call); 96 Response* SlowEcho(MethodCall* method_call);
97 97
98 // Returns NULL, instead of a valid Response. 98 // Returns NULL, instead of a valid Response.
99 Response* BrokenMethod(MethodCall* method_call); 99 Response* BrokenMethod(MethodCall* method_call);
100 100
101 scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy_; 101 scoped_refptr<base::MessageLoopProxy> dbus_thread_message_loop_proxy_;
102 base::WaitableEvent on_all_methods_exported_; 102 base::WaitableEvent on_all_methods_exported_;
103 // The number of methods actually exported. 103 // The number of methods actually exported.
104 int num_exported_methods_; 104 int num_exported_methods_;
105 105
106 scoped_refptr<Bus> bus_; 106 scoped_refptr<Bus> bus_;
107 ExportedObject* exported_object_; 107 ExportedObject* exported_object_;
108 }; 108 };
109 109
110 } // namespace dbus 110 } // namespace dbus
111 111
112 #endif // DBUS_TEST_SERVICE_H_ 112 #endif // DBUS_TEST_SERVICE_H_
OLDNEW
« no previous file with comments | « base/message_pump_glib.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698