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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc

Issue 11414253: DriveFileSyncService listens to OnAuthenticated event to recover from unavailable state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix broken tests... Created 8 years, 1 month 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: chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc b/chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc
index f42bc49be9984faa4d12f968b7d9560228da6f2f..4850252c24236303e8fe672d254ab42fd3838dc2 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc
@@ -136,6 +136,7 @@ class DriveFileSyncClientTest : public testing::Test {
fake_drive_uploader_ = new FakeDriveUploader;
EXPECT_CALL(*mock_drive_service_, Initialize(&profile_)).Times(1);
+ EXPECT_CALL(*mock_drive_service_, AddObserver(_));
sync_client_ = DriveFileSyncClient::CreateForTesting(
&profile_,
@@ -144,6 +145,7 @@ class DriveFileSyncClientTest : public testing::Test {
}
virtual void TearDown() OVERRIDE {
+ EXPECT_CALL(*mock_drive_service_, RemoveObserver(_));
EXPECT_CALL(*mock_drive_service(), CancelAll());
sync_client_.reset();
}

Powered by Google App Engine
This is Rietveld 408576698