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

Unified Diff: components/invalidation/non_blocking_invalidator_unittest.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 7 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: components/invalidation/non_blocking_invalidator_unittest.cc
diff --git a/components/invalidation/non_blocking_invalidator_unittest.cc b/components/invalidation/non_blocking_invalidator_unittest.cc
index 331b6c4cb67f00c6232c4793a082040f85307228..d1f2145ca55b16ea873e9bb40f13766d9de3a284 100644
--- a/components/invalidation/non_blocking_invalidator_unittest.cc
+++ b/components/invalidation/non_blocking_invalidator_unittest.cc
@@ -5,9 +5,9 @@
#include "components/invalidation/non_blocking_invalidator.h"
#include "base/bind_helpers.h"
+#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/threading/thread.h"
#include "components/invalidation/fake_invalidation_handler.h"
@@ -38,7 +38,7 @@ class NonBlockingInvalidatorTestDelegate {
options.message_loop_type = base::MessageLoop::TYPE_IO;
io_thread_.StartWithOptions(options);
request_context_getter_ =
- new net::TestURLRequestContextGetter(io_thread_.message_loop_proxy());
+ new net::TestURLRequestContextGetter(io_thread_.task_runner());
notifier::NotifierOptions notifier_options;
notifier_options.request_context_getter = request_context_getter_;
NetworkChannelCreator network_channel_creator =
@@ -67,11 +67,8 @@ class NonBlockingInvalidatorTestDelegate {
void WaitForInvalidator() {
base::RunLoop run_loop;
- ASSERT_TRUE(
- io_thread_.message_loop_proxy()->PostTaskAndReply(
- FROM_HERE,
- base::Bind(&base::DoNothing),
- run_loop.QuitClosure()));
+ ASSERT_TRUE(io_thread_.task_runner()->PostTaskAndReply(
+ FROM_HERE, base::Bind(&base::DoNothing), run_loop.QuitClosure()));
run_loop.Run();
}
« no previous file with comments | « components/invalidation/non_blocking_invalidator.cc ('k') | components/invalidation/sync_invalidation_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698