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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_service_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_service_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc b/chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc
index f451ce81550cbfc603cb83d7c00f1c9558bcadc2..114343d2277781c20ab95bbdf2e685171371a299 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_service_unittest.cc
@@ -95,6 +95,7 @@ class DriveFileSyncServiceTest : public testing::Test {
mock_drive_service_ = new StrictMock<google_apis::MockDriveService>;
EXPECT_CALL(*mock_drive_service(), Initialize(&profile_));
+ EXPECT_CALL(*mock_drive_service(), AddObserver(_));
sync_client_ = DriveFileSyncClient::CreateForTesting(
&profile_,
@@ -117,6 +118,7 @@ class DriveFileSyncServiceTest : public testing::Test {
}
virtual void TearDown() OVERRIDE {
+ EXPECT_CALL(*mock_drive_service(), RemoveObserver(_));
EXPECT_CALL(*mock_drive_service(), CancelAll());
if (sync_service_) {

Powered by Google App Engine
This is Rietveld 408576698