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

Unified Diff: components/gcm_driver/gcm_driver_unittest.cc

Issue 278493002: Split GCMDriver into platform-specific implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, and add FakeGCMDriver for unit tests Created 6 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/gcm_driver/gcm_driver_unittest.cc
diff --git a/components/gcm_driver/gcm_driver_unittest.cc b/components/gcm_driver/gcm_driver_unittest.cc
index 52f6abb2b5e4113781a683439254133da815b1a0..d4694cfb520c2c47ad30818f62e53c15a4ab6818 100644
--- a/components/gcm_driver/gcm_driver_unittest.cc
+++ b/components/gcm_driver/gcm_driver_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/gcm_driver/gcm_driver.h"
+#include "components/gcm_driver/gcm_driver_desktop.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -190,7 +190,8 @@ void GCMDriverTest::CreateDriver(
FakeGCMClient::StartMode gcm_client_start_mode) {
scoped_refptr<net::URLRequestContextGetter> request_context =
new net::TestURLRequestContextGetter(io_thread_.message_loop_proxy());
- driver_.reset(new GCMDriver(
+ // TODO(johnme): Need equivalent test coverage of GCMDriverAndroid.
+ driver_.reset(new GCMDriverDesktop(
jianli 2014/05/29 07:34:03 Will this still be built for Android?
johnme 2014/05/29 17:40:55 Great question! It was, but only by accident becau
jianli 2014/05/30 06:30:23 I think we should test GCMDriverAndroid on Android
johnme 2014/05/30 10:26:45 Done (renamed this file to gcm_driver_desktop_unit
scoped_ptr<GCMClientFactory>(new FakeGCMClientFactory(
gcm_client_start_mode,
base::MessageLoopProxy::current(),
« components/gcm_driver/gcm_driver.h ('K') | « components/gcm_driver/gcm_driver_desktop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698