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

Unified Diff: components/gcm_driver/gcm_client_impl_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
« no previous file with comments | « components/gcm_driver/gcm_client_impl.cc ('k') | components/gcm_driver/gcm_driver_desktop_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/gcm_client_impl_unittest.cc
diff --git a/components/gcm_driver/gcm_client_impl_unittest.cc b/components/gcm_driver/gcm_client_impl_unittest.cc
index fb911be02c47104ba997d2e67018ded6891d4aee..fc578e1d693bb70f4d2705ed55c099f0b67496ea 100644
--- a/components/gcm_driver/gcm_client_impl_unittest.cc
+++ b/components/gcm_driver/gcm_client_impl_unittest.cc
@@ -9,7 +9,6 @@
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/clock.h"
@@ -392,8 +391,8 @@ class GCMClientImplTest : public testing::Test,
GCMClientImplTest::GCMClientImplTest()
: last_event_(NONE),
last_result_(GCMClient::UNKNOWN_ERROR),
- url_request_context_getter_(new net::TestURLRequestContextGetter(
- message_loop_.message_loop_proxy())) {
+ url_request_context_getter_(
+ new net::TestURLRequestContextGetter(message_loop_.task_runner())) {
}
GCMClientImplTest::~GCMClientImplTest() {}
@@ -525,12 +524,10 @@ void GCMClientImplTest::InitializeGCMClient() {
// Actual initialization.
GCMClient::ChromeBuildInfo chrome_build_info;
chrome_build_info.version = kChromeVersion;
- gcm_client_->Initialize(chrome_build_info,
- temp_directory_.path(),
- message_loop_.message_loop_proxy(),
+ gcm_client_->Initialize(chrome_build_info, temp_directory_.path(),
+ message_loop_.task_runner(),
url_request_context_getter_,
- make_scoped_ptr<Encryptor>(new FakeEncryptor),
- this);
+ make_scoped_ptr<Encryptor>(new FakeEncryptor), this);
}
void GCMClientImplTest::StartGCMClient() {
« no previous file with comments | « components/gcm_driver/gcm_client_impl.cc ('k') | components/gcm_driver/gcm_driver_desktop_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698