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

Unified Diff: base/test/thread_test_helper.h

Issue 1100773004: base: Remove most uses of MessageLoopProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: base/test/thread_test_helper.h
diff --git a/base/test/thread_test_helper.h b/base/test/thread_test_helper.h
index f6817b520ed3bc57844ca17015887d6f382aa273..5147f6b10d2a791eeb0808ab3a9b25960a49a13a 100644
--- a/base/test/thread_test_helper.h
+++ b/base/test/thread_test_helper.h
@@ -7,7 +7,7 @@
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
namespace base {
@@ -19,7 +19,7 @@ namespace base {
class ThreadTestHelper : public RefCountedThreadSafe<ThreadTestHelper> {
public:
explicit ThreadTestHelper(
- const scoped_refptr<MessageLoopProxy>& target_thread);
+ const scoped_refptr<SingleThreadTaskRunner>& target_thread);
danakj 2015/04/21 20:16:31 nit: pass by value?
Sami 2015/04/23 17:48:25 Done.
// True if RunTest() was successfully executed on the target thread.
bool Run() WARN_UNUSED_RESULT;
@@ -38,7 +38,7 @@ class ThreadTestHelper : public RefCountedThreadSafe<ThreadTestHelper> {
void RunInThread();
bool test_result_;
- scoped_refptr<MessageLoopProxy> target_thread_;
+ scoped_refptr<SingleThreadTaskRunner> target_thread_;
WaitableEvent done_event_;
DISALLOW_COPY_AND_ASSIGN(ThreadTestHelper);

Powered by Google App Engine
This is Rietveld 408576698