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

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: 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
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2c57239758cb7ccf1a9c62316e502c5d84b5d860..85e85f9c01cd0b30e56a02a9e5acc145c9588b49 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_) {
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698