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

Unified Diff: rlz/lib/rlz_lib_test.cc

Issue 2084913004: Remove calls to deprecated MessageLoop methods in rlz. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/lib/rlz_lib_test.cc
diff --git a/rlz/lib/rlz_lib_test.cc b/rlz/lib/rlz_lib_test.cc
index 36fdbb684619f12c2576da394c84b5809e2afa0a..1a908ede21cb4a345dbe619b7c81c3d279452de3 100644
--- a/rlz/lib/rlz_lib_test.cc
+++ b/rlz/lib/rlz_lib_test.cc
@@ -19,6 +19,7 @@
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
+#include "base/single_thread_task_runner.h"
#include "build/build_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -448,8 +449,7 @@ TEST_F(RlzLibTest, SendFinancialPing) {
ASSERT_TRUE(io_thread.StartWithOptions(options));
scoped_refptr<net::TestURLRequestContextGetter> context =
- new net::TestURLRequestContextGetter(
- io_thread.message_loop()->task_runner());
+ new net::TestURLRequestContextGetter(io_thread.task_runner());
rlz_lib::SetURLRequestContext(context.get());
URLRequestRAII set_context(context.get());
@@ -501,8 +501,7 @@ TEST_F(RlzLibTest, SendFinancialPingDuringShutdown) {
ASSERT_TRUE(io_thread.StartWithOptions(options));
scoped_refptr<net::TestURLRequestContextGetter> context =
- new net::TestURLRequestContextGetter(
- io_thread.message_loop()->task_runner());
+ new net::TestURLRequestContextGetter(io_thread.task_runner());
rlz_lib::SetURLRequestContext(context.get());
URLRequestRAII set_context(context.get());
@@ -514,7 +513,7 @@ TEST_F(RlzLibTest, SendFinancialPingDuringShutdown) {
EXPECT_FALSE(rlz_lib::test::WasSendFinancialPingInterrupted());
base::MessageLoop loop;
- loop.PostTask(FROM_HERE, base::Bind(&ResetContext));
+ loop.task_runner()->PostTask(FROM_HERE, base::Bind(&ResetContext));
std::string request;
EXPECT_FALSE(rlz_lib::SendFinancialPing(rlz_lib::TOOLBAR_NOTIFIER, points,
"swg", "GGLA", "SwgProductId1234", "en-UK", false,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698