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

Unified Diff: chrome/browser/sync/profile_sync_service_unittest.cc

Issue 12114012: Remove syncer::IncomingInvalidationSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove comment Created 7 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc
index 8c9d653c756babd62955d63e13328075e074846a..7ca9f62413edc983b39a420a68292858e3e532d0 100644
--- a/chrome/browser/sync/profile_sync_service_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_unittest.cc
@@ -486,9 +486,8 @@ TEST_F(ProfileSyncServiceTest, UpdateRegisteredInvalidationIdsPersistence) {
backend->EmitOnInvalidatorStateChange(syncer::INVALIDATIONS_ENABLED);
EXPECT_EQ(syncer::INVALIDATIONS_ENABLED, handler.GetInvalidatorState());
- backend->EmitOnIncomingInvalidation(states, syncer::REMOTE_INVALIDATION);
+ backend->EmitOnIncomingInvalidation(states);
EXPECT_THAT(states, Eq(handler.GetLastInvalidationMap()));
- EXPECT_EQ(syncer::REMOTE_INVALIDATION, handler.GetLastInvalidationSource());
backend->EmitOnInvalidatorStateChange(syncer::TRANSIENT_INVALIDATION_ERROR);
EXPECT_EQ(syncer::TRANSIENT_INVALIDATION_ERROR,
@@ -586,10 +585,9 @@ class ProfileSyncServiceInvalidatorTestDelegate {
}
void TriggerOnIncomingInvalidation(
- const syncer::ObjectIdInvalidationMap& invalidation_map,
- syncer::IncomingInvalidationSource source) {
+ const syncer::ObjectIdInvalidationMap& invalidation_map) {
harness_.service->GetBackendForTest()->EmitOnIncomingInvalidation(
- invalidation_map, source);
+ invalidation_map);
}
private:
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698