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

Side by Side Diff: dbus/mock_object_proxy.h

Issue 629883003: Replacing the OVERRIDE with override and FINAL with final in /src/dbus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « dbus/dbus_statistics_unittest.cc ('k') | dbus/object_manager_unittest.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_MOCK_OBJECT_PROXY_H_ 5 #ifndef DBUS_MOCK_OBJECT_PROXY_H_
6 #define DBUS_MOCK_OBJECT_PROXY_H_ 6 #define DBUS_MOCK_OBJECT_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "dbus/message.h" 10 #include "dbus/message.h"
(...skipping 14 matching lines...) Expand all
25 // uncopyable. This is a workaround which defines |MockCallMethodAndBlock| as 25 // uncopyable. This is a workaround which defines |MockCallMethodAndBlock| as
26 // a mock method and makes |CallMethodAndBlock| call the mocked method. 26 // a mock method and makes |CallMethodAndBlock| call the mocked method.
27 // Use |MockCallMethodAndBlock| for setting/testing expectations. 27 // Use |MockCallMethodAndBlock| for setting/testing expectations.
28 MOCK_METHOD3(MockCallMethodAndBlockWithErrorDetails, 28 MOCK_METHOD3(MockCallMethodAndBlockWithErrorDetails,
29 Response*(MethodCall* method_call, 29 Response*(MethodCall* method_call,
30 int timeout_ms, 30 int timeout_ms,
31 ScopedDBusError* error)); 31 ScopedDBusError* error));
32 virtual scoped_ptr<Response> CallMethodAndBlockWithErrorDetails( 32 virtual scoped_ptr<Response> CallMethodAndBlockWithErrorDetails(
33 MethodCall* method_call, 33 MethodCall* method_call,
34 int timeout_ms, 34 int timeout_ms,
35 ScopedDBusError* error) OVERRIDE { 35 ScopedDBusError* error) override {
36 return scoped_ptr<Response>( 36 return scoped_ptr<Response>(
37 MockCallMethodAndBlockWithErrorDetails(method_call, timeout_ms, error)); 37 MockCallMethodAndBlockWithErrorDetails(method_call, timeout_ms, error));
38 } 38 }
39 MOCK_METHOD2(MockCallMethodAndBlock, Response*(MethodCall* method_call, 39 MOCK_METHOD2(MockCallMethodAndBlock, Response*(MethodCall* method_call,
40 int timeout_ms)); 40 int timeout_ms));
41 virtual scoped_ptr<Response> CallMethodAndBlock(MethodCall* method_call, 41 virtual scoped_ptr<Response> CallMethodAndBlock(MethodCall* method_call,
42 int timeout_ms) OVERRIDE { 42 int timeout_ms) override {
43 return scoped_ptr<Response>(MockCallMethodAndBlock(method_call, 43 return scoped_ptr<Response>(MockCallMethodAndBlock(method_call,
44 timeout_ms)); 44 timeout_ms));
45 } 45 }
46 MOCK_METHOD3(CallMethod, void(MethodCall* method_call, 46 MOCK_METHOD3(CallMethod, void(MethodCall* method_call,
47 int timeout_ms, 47 int timeout_ms,
48 ResponseCallback callback)); 48 ResponseCallback callback));
49 MOCK_METHOD4(CallMethodWithErrorCallback, void(MethodCall* method_call, 49 MOCK_METHOD4(CallMethodWithErrorCallback, void(MethodCall* method_call,
50 int timeout_ms, 50 int timeout_ms,
51 ResponseCallback callback, 51 ResponseCallback callback,
52 ErrorCallback error_callback)); 52 ErrorCallback error_callback));
53 MOCK_METHOD4(ConnectToSignal, 53 MOCK_METHOD4(ConnectToSignal,
54 void(const std::string& interface_name, 54 void(const std::string& interface_name,
55 const std::string& signal_name, 55 const std::string& signal_name,
56 SignalCallback signal_callback, 56 SignalCallback signal_callback,
57 OnConnectedCallback on_connected_callback)); 57 OnConnectedCallback on_connected_callback));
58 MOCK_METHOD0(Detach, void()); 58 MOCK_METHOD0(Detach, void());
59 59
60 protected: 60 protected:
61 virtual ~MockObjectProxy(); 61 virtual ~MockObjectProxy();
62 }; 62 };
63 63
64 } // namespace dbus 64 } // namespace dbus
65 65
66 #endif // DBUS_MOCK_OBJECT_PROXY_H_ 66 #endif // DBUS_MOCK_OBJECT_PROXY_H_
OLDNEW
« no previous file with comments | « dbus/dbus_statistics_unittest.cc ('k') | dbus/object_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698