| 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 78ac1f42c12ffe15ba6d1a0b7f57e0ce81c40780..6d7236171ce59150c7463246d3995bf6d0762a72 100644
|
| --- a/chrome/browser/sync/profile_sync_service_unittest.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_unittest.cc
|
| @@ -46,6 +46,8 @@ using testing::Mock;
|
| using testing::Return;
|
| using testing::StrictMock;
|
|
|
| +const char kHandlerName[] = "MockObserver";
|
| +
|
| class ProfileSyncServiceTest : public testing::Test {
|
| protected:
|
| ProfileSyncServiceTest()
|
| @@ -389,7 +391,8 @@ TEST_F(ProfileSyncServiceTest, UpdateRegisteredInvalidationIds) {
|
| EXPECT_CALL(observer, OnNotificationsDisabled(
|
| syncer::TRANSIENT_NOTIFICATION_ERROR));
|
|
|
| - service_->UpdateRegisteredInvalidationIds(&observer, ids);
|
| + service_->SetInvalidationHandler(kHandlerName, &observer);
|
| + service_->UpdateRegisteredInvalidationIds(kHandlerName, ids);
|
|
|
| SyncBackendHostForProfileSyncTest* const backend =
|
| service_->GetBackendForTest();
|
| @@ -400,7 +403,7 @@ TEST_F(ProfileSyncServiceTest, UpdateRegisteredInvalidationIds) {
|
|
|
| Mock::VerifyAndClearExpectations(&observer);
|
|
|
| - service_->UpdateRegisteredInvalidationIds(&observer, syncer::ObjectIdSet());
|
| + service_->SetInvalidationHandler(kHandlerName, NULL);
|
|
|
| backend->EmitOnNotificationsEnabled();
|
| backend->EmitOnIncomingNotification(payloads, syncer::REMOTE_NOTIFICATION);
|
| @@ -425,7 +428,8 @@ TEST_F(ProfileSyncServiceTest, UpdateRegisteredInvalidationIdsPersistence) {
|
| EXPECT_CALL(observer, OnNotificationsDisabled(
|
| syncer::TRANSIENT_NOTIFICATION_ERROR));
|
|
|
| - service_->UpdateRegisteredInvalidationIds(&observer, ids);
|
| + service_->SetInvalidationHandler(kHandlerName, &observer);
|
| + service_->UpdateRegisteredInvalidationIds(kHandlerName, ids);
|
|
|
| service_->StopAndSuppress();
|
| service_->UnsuppressAndStart();
|
|
|