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

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: Rebase Created 8 years 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 0d3a5c2fa743fddb95181c62d378814df316d79c..8939b63a9c8a2954ea14f5f1b58dd3e0ee5c29a8 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();
}
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_client.cc ('k') | chrome/browser/sync_file_system/drive_file_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698