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

Unified Diff: chrome/browser/sync/glue/sync_backend_host_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/glue/sync_backend_host.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/sync_backend_host_unittest.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host_unittest.cc b/chrome/browser/sync/glue/sync_backend_host_unittest.cc
index 1b2abfdc2cedf38c2f128ae1789c5263f1c2e4ff..24165d2bd3150f1dc0d1a597106a85e12095bd58 100644
--- a/chrome/browser/sync/glue/sync_backend_host_unittest.cc
+++ b/chrome/browser/sync/glue/sync_backend_host_unittest.cc
@@ -60,9 +60,8 @@ class MockSyncFrontend : public SyncFrontend {
MOCK_METHOD1(OnInvalidatorStateChange,
void(syncer::InvalidatorState));
- MOCK_METHOD2(OnIncomingInvalidation,
- void(const syncer::ObjectIdInvalidationMap&,
- syncer::IncomingInvalidationSource));
+ MOCK_METHOD1(OnIncomingInvalidation,
+ void(const syncer::ObjectIdInvalidationMap&));
MOCK_METHOD3(
OnBackendInitialized,
void(const syncer::WeakHandle<syncer::JsBackend>&,
@@ -602,11 +601,11 @@ TEST_F(SyncBackendHostTest, Invalidate) {
EXPECT_CALL(
mock_frontend_,
- OnIncomingInvalidation(invalidation_map, syncer::REMOTE_INVALIDATION))
+ OnIncomingInvalidation(invalidation_map))
.WillOnce(InvokeWithoutArgs(QuitMessageLoop));
backend_->UpdateRegisteredInvalidationIds(ids);
- fake_manager_->Invalidate(invalidation_map, syncer::REMOTE_INVALIDATION);
+ fake_manager_->Invalidate(invalidation_map);
ui_loop_.PostDelayedTask(
FROM_HERE, ui_loop_.QuitClosure(), TestTimeouts::action_timeout());
ui_loop_.Run();
@@ -647,7 +646,7 @@ TEST_F(SyncBackendHostTest, InvalidationsAfterStopSyncingForShutdown) {
fake_manager_->UpdateInvalidatorState(syncer::INVALIDATIONS_ENABLED);
const syncer::ObjectIdInvalidationMap& invalidation_map =
syncer::ObjectIdSetToInvalidationMap(ids, "payload");
- fake_manager_->Invalidate(invalidation_map, syncer::REMOTE_INVALIDATION);
+ fake_manager_->Invalidate(invalidation_map);
// Make sure the above calls take effect before we continue.
fake_manager_->WaitForSyncThread();
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698