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

Unified Diff: base/test/thread_test_helper.cc

Issue 369703003: Reduce usage of MessageLoopProxy in base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/thread_test_helper.h ('k') | base/threading/sequenced_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/thread_test_helper.cc
diff --git a/base/test/thread_test_helper.cc b/base/test/thread_test_helper.cc
index 2bd3ba54ac2e98a51cb1a5fce4d79eb37c5fff2b..5b5dd9ec91a85e728f5dc4ce66e1a59638b8b100 100644
--- a/base/test/thread_test_helper.cc
+++ b/base/test/thread_test_helper.cc
@@ -6,19 +6,20 @@
#include "base/bind.h"
#include "base/location.h"
+#include "base/sequenced_task_runner.h"
#include "base/threading/thread_restrictions.h"
namespace base {
ThreadTestHelper::ThreadTestHelper(
- const scoped_refptr<MessageLoopProxy>& target_thread)
+ const scoped_refptr<base::SequencedTaskRunner>& target_task_runner)
: test_result_(false),
- target_thread_(target_thread),
+ target_task_runner_(target_task_runner),
done_event_(false, false) {
}
bool ThreadTestHelper::Run() {
- if (!target_thread_->PostTask(
+ if (!target_task_runner_->PostTask(
FROM_HERE, base::Bind(&ThreadTestHelper::RunInThread, this))) {
return false;
}
« no previous file with comments | « base/test/thread_test_helper.h ('k') | base/threading/sequenced_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698