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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dbus/exported_object.cc ('k') | dbus/object_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/mock_bus.h
diff --git a/dbus/mock_bus.h b/dbus/mock_bus.h
index c3991f5d6e8c3e6862261888198319534ea97caf..60000672e1163f45d8ee19c50faea25f0a7e8efc 100644
--- a/dbus/mock_bus.h
+++ b/dbus/mock_bus.h
@@ -60,16 +60,8 @@ class MockBus : public Bus {
void* user_data,
DBusError* error));
MOCK_METHOD1(UnregisterObjectPath, void(const ObjectPath& object_path));
- MOCK_METHOD2(PostTaskToOriginThread, void(
- const tracked_objects::Location& from_here,
- const base::Closure& task));
- MOCK_METHOD2(PostTaskToDBusThread, void(
- const tracked_objects::Location& from_here,
- const base::Closure& task));
- MOCK_METHOD3(PostDelayedTaskToDBusThread, void(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay));
+ MOCK_METHOD0(GetDBusTaskRunner, base::TaskRunner*());
+ MOCK_METHOD0(GetOriginTaskRunner, base::TaskRunner*());
MOCK_METHOD0(HasDBusThread, bool());
MOCK_METHOD0(AssertOnOriginThread, void());
MOCK_METHOD0(AssertOnDBusThread, void());
« 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