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

Unified Diff: sync/notifier/sync_system_resources_unittest.cc

Issue 140513002: Client-to-server messages in GCMNetworkChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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: sync/notifier/sync_system_resources_unittest.cc
diff --git a/sync/notifier/sync_system_resources_unittest.cc b/sync/notifier/sync_system_resources_unittest.cc
index 632b11d0b2c3b772a06854fa8d6cfd0266d6ebba..e25cb9953968e7249429ddc2fd6a882ea1ea6e6d 100644
--- a/sync/notifier/sync_system_resources_unittest.cc
+++ b/sync/notifier/sync_system_resources_unittest.cc
@@ -181,7 +181,7 @@ class TestSyncNetworkChannel : public SyncNetworkChannel {
TestSyncNetworkChannel() {}
virtual ~TestSyncNetworkChannel() {}
- using SyncNetworkChannel::NotifyStateChange;
+ using SyncNetworkChannel::SetNetworkState;
using SyncNetworkChannel::DeliverIncomingMessage;
virtual void SendEncodedMessage(const std::string& encoded_message) OVERRIDE {
@@ -302,10 +302,10 @@ TEST_F(SyncNetworkChannelTest, DecodeGarbage) {
TEST_F(SyncNetworkChannelTest, OnNetworkChannelStateChanged) {
EXPECT_EQ(DEFAULT_INVALIDATION_ERROR, last_invalidator_state_);
EXPECT_FALSE(connected_);
- network_channel_.NotifyStateChange(INVALIDATIONS_ENABLED);
+ network_channel_.SetNetworkState(INVALIDATIONS_ENABLED);
EXPECT_EQ(INVALIDATIONS_ENABLED, last_invalidator_state_);
EXPECT_TRUE(connected_);
- network_channel_.NotifyStateChange(INVALIDATION_CREDENTIALS_REJECTED);
+ network_channel_.SetNetworkState(INVALIDATION_CREDENTIALS_REJECTED);
EXPECT_EQ(INVALIDATION_CREDENTIALS_REJECTED, last_invalidator_state_);
EXPECT_FALSE(connected_);
}

Powered by Google App Engine
This is Rietveld 408576698