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

Side by Side Diff: dbus/mock_bus.h

Issue 24554002: dbus: Replace PostTaskTo*Thread methods with Get*TaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « dbus/exported_object.cc ('k') | dbus/object_proxy.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_BUS_H_ 5 #ifndef DBUS_MOCK_BUS_H_
6 #define DBUS_MOCK_BUS_H_ 6 #define DBUS_MOCK_BUS_H_
7 7
8 #include "dbus/bus.h" 8 #include "dbus/bus.h"
9 #include "dbus/object_path.h" 9 #include "dbus/object_path.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void* user_data)); 53 void* user_data));
54 MOCK_METHOD2(AddMatch, void(const std::string& match_rule, 54 MOCK_METHOD2(AddMatch, void(const std::string& match_rule,
55 DBusError* error)); 55 DBusError* error));
56 MOCK_METHOD2(RemoveMatch, bool(const std::string& match_rule, 56 MOCK_METHOD2(RemoveMatch, bool(const std::string& match_rule,
57 DBusError* error)); 57 DBusError* error));
58 MOCK_METHOD4(TryRegisterObjectPath, bool(const ObjectPath& object_path, 58 MOCK_METHOD4(TryRegisterObjectPath, bool(const ObjectPath& object_path,
59 const DBusObjectPathVTable* vtable, 59 const DBusObjectPathVTable* vtable,
60 void* user_data, 60 void* user_data,
61 DBusError* error)); 61 DBusError* error));
62 MOCK_METHOD1(UnregisterObjectPath, void(const ObjectPath& object_path)); 62 MOCK_METHOD1(UnregisterObjectPath, void(const ObjectPath& object_path));
63 MOCK_METHOD2(PostTaskToOriginThread, void( 63 MOCK_METHOD0(GetDBusTaskRunner, base::TaskRunner*());
64 const tracked_objects::Location& from_here, 64 MOCK_METHOD0(GetOriginTaskRunner, base::TaskRunner*());
65 const base::Closure& task));
66 MOCK_METHOD2(PostTaskToDBusThread, void(
67 const tracked_objects::Location& from_here,
68 const base::Closure& task));
69 MOCK_METHOD3(PostDelayedTaskToDBusThread, void(
70 const tracked_objects::Location& from_here,
71 const base::Closure& task,
72 base::TimeDelta delay));
73 MOCK_METHOD0(HasDBusThread, bool()); 65 MOCK_METHOD0(HasDBusThread, bool());
74 MOCK_METHOD0(AssertOnOriginThread, void()); 66 MOCK_METHOD0(AssertOnOriginThread, void());
75 MOCK_METHOD0(AssertOnDBusThread, void()); 67 MOCK_METHOD0(AssertOnDBusThread, void());
76 68
77 protected: 69 protected:
78 virtual ~MockBus(); 70 virtual ~MockBus();
79 }; 71 };
80 72
81 } // namespace dbus 73 } // namespace dbus
82 74
83 #endif // DBUS_MOCK_BUS_H_ 75 #endif // DBUS_MOCK_BUS_H_
OLDNEW
« no previous file with comments | « dbus/exported_object.cc ('k') | dbus/object_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698