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

Unified Diff: chrome/browser/storage_monitor/test_storage_monitor.h

Issue 16703025: [StorageMonitor] Move StorageMonitor ownership to BrowserProcessImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Catch up to SystemInfoStorage eject test Created 7 years, 5 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
Index: chrome/browser/storage_monitor/test_storage_monitor.h
diff --git a/chrome/browser/storage_monitor/test_storage_monitor.h b/chrome/browser/storage_monitor/test_storage_monitor.h
index 6408e6657c9423f2dcb42d1c6a0321d79806ad12..26ff1339c824728e4519bfb7ba2ce3aaafcb6a6c 100644
--- a/chrome/browser/storage_monitor/test_storage_monitor.h
+++ b/chrome/browser/storage_monitor/test_storage_monitor.h
@@ -21,10 +21,21 @@ class TestStorageMonitor : public chrome::StorageMonitor {
void MarkInitialized();
- // Will create a new testing implementation for browser tests,
- // taking care to deal with the existing singleton correctly.
+ // Create and initialize a new TestStorageMonitor and install it
+ // in the TestingBrowserProcess.
+ static TestStorageMonitor* CreateAndInstall();
+
+ // Create and initialize a new TestStorageMonitor, and install it
+ // in the BrowserProcessImpl. (Browser tests use the production browser
+ // process implementation.)
static TestStorageMonitor* CreateForBrowserTests();
+ // Remove the singleton StorageMonitor from the TestingBrowserProcess.
+ static void RemoveSingleton();
+
+ // Synchronously initialize the current storage monitor.
+ static void SyncInitialize();
+
virtual bool GetStorageInfoForPath(
const base::FilePath& path,
StorageInfo* device_info) const OVERRIDE;
« no previous file with comments | « chrome/browser/storage_monitor/storage_monitor_win_unittest.cc ('k') | chrome/browser/storage_monitor/test_storage_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698