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

Side by Side Diff: components/invalidation/impl/gcm_network_channel_unittest.cc

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/run_loop.h" 5 #include "base/run_loop.h"
6 #include "base/strings/string_util.h" 6 #include "base/strings/string_util.h"
7 #include "base/thread_task_runner_handle.h" 7 #include "base/thread_task_runner_handle.h"
8 #include "components/invalidation/gcm_network_channel.h" 8 #include "components/invalidation/impl/gcm_network_channel.h"
9 #include "google_apis/gaia/google_service_auth_error.h" 9 #include "google_apis/gaia/google_service_auth_error.h"
10 #include "net/url_request/test_url_fetcher_factory.h" 10 #include "net/url_request/test_url_fetcher_factory.h"
11 #include "net/url_request/url_request_test_util.h" 11 #include "net/url_request/url_request_test_util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 class TestGCMNetworkChannelDelegate : public GCMNetworkChannelDelegate { 16 class TestGCMNetworkChannelDelegate : public GCMNetworkChannelDelegate {
17 public: 17 public:
18 TestGCMNetworkChannelDelegate() 18 TestGCMNetworkChannelDelegate()
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 delegate()->request_token_callback.Run( 503 delegate()->request_token_callback.Run(
504 GoogleServiceAuthError::AuthErrorNone(), "access.token"); 504 GoogleServiceAuthError::AuthErrorNone(), "access.token");
505 RunLoopUntilIdle(); 505 RunLoopUntilIdle();
506 EXPECT_EQ(url_fetchers_created_count(), 3); 506 EXPECT_EQ(url_fetchers_created_count(), 3);
507 // Echo_token should be from second message. 507 // Echo_token should be from second message.
508 EXPECT_EQ("echo.token", get_last_echo_token()); 508 EXPECT_EQ("echo.token", get_last_echo_token());
509 } 509 }
510 #endif 510 #endif
511 511
512 } // namespace syncer 512 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698