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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_service.h

Issue 12391012: Sync FileSystem: Add simulated relaunch of DriveFileSyncService on its unit_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: testfix for win7 Created 7 years, 10 months 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 | « no previous file | chrome/browser/sync_file_system/drive_file_sync_service.cc » ('j') | 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.h
diff --git a/chrome/browser/sync_file_system/drive_file_sync_service.h b/chrome/browser/sync_file_system/drive_file_sync_service.h
index 3232e5f1bf52a5b595cbbdc90e0059b00238a07a..cef85e706ca0fa19feac74f4fdb619c34f3c77f4 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_service.h
+++ b/chrome/browser/sync_file_system/drive_file_sync_service.h
@@ -62,6 +62,12 @@ class DriveFileSyncService
scoped_ptr<DriveFileSyncClientInterface> sync_client,
scoped_ptr<DriveMetadataStore> metadata_store);
+ // Destroys |sync_service| and passes the ownership of |sync_client| to caller
+ // for testing.
+ static scoped_ptr<DriveFileSyncClientInterface>
+ DestroyAndPassSyncClientForTesting(
+ scoped_ptr<DriveFileSyncService> sync_service);
+
// RemoteFileSyncService overrides.
virtual void AddServiceObserver(Observer* observer) OVERRIDE;
virtual void AddFileStatusObserver(FileStatusObserver* observer) OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698