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

Side by Side Diff: components/invalidation/impl/sync_system_resources_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: Explicitly forbid content to prevent future additions Created 5 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 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 "components/invalidation/sync_system_resources.h" 5 #include "components/invalidation/impl/sync_system_resources.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 13
14 #include "components/invalidation/push_client_channel.h" 14 #include "components/invalidation/impl/push_client_channel.h"
15 #include "components/invalidation/state_writer.h" 15 #include "components/invalidation/impl/state_writer.h"
16 #include "google/cacheinvalidation/include/types.h" 16 #include "google/cacheinvalidation/include/types.h"
17 #include "jingle/notifier/listener/fake_push_client.h" 17 #include "jingle/notifier/listener/fake_push_client.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace syncer { 21 namespace syncer {
22 namespace { 22 namespace {
23 23
24 using ::testing::_; 24 using ::testing::_;
25 using ::testing::SaveArg; 25 using ::testing::SaveArg;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 TEST_F(SyncNetworkChannelTest, NetworkStateChange) { 241 TEST_F(SyncNetworkChannelTest, NetworkStateChange) {
242 EXPECT_FALSE(connected_); 242 EXPECT_FALSE(connected_);
243 network_channel_.NotifyNetworkStatusChange(true); 243 network_channel_.NotifyNetworkStatusChange(true);
244 EXPECT_TRUE(connected_); 244 EXPECT_TRUE(connected_);
245 network_channel_.NotifyNetworkStatusChange(false); 245 network_channel_.NotifyNetworkStatusChange(false);
246 EXPECT_FALSE(connected_); 246 EXPECT_FALSE(connected_);
247 } 247 }
248 248
249 } // namespace 249 } // namespace
250 } // namespace syncer 250 } // namespace syncer
OLDNEW
« no previous file with comments | « components/invalidation/impl/sync_system_resources.cc ('k') | components/invalidation/impl/ticl_invalidation_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698