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

Unified Diff: chrome/browser/chromeos/gdata/gdata_cache.h

Issue 10830181: Implement initialization for GDataCache to use in-memory metadata for tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add 'ForTesting' versions. Created 8 years, 4 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/chromeos/gdata/gdata_cache.h
diff --git a/chrome/browser/chromeos/gdata/gdata_cache.h b/chrome/browser/chromeos/gdata/gdata_cache.h
index c9eb8d449ae7550f6c7c71d32de2868a053ba45a..6bbdaa6f7c707f456813e5f2c5576938099197a1 100644
--- a/chrome/browser/chromeos/gdata/gdata_cache.h
+++ b/chrome/browser/chromeos/gdata/gdata_cache.h
@@ -272,6 +272,9 @@ class GDataCache {
// Utility method to call Initialize on UI thread.
void RequestInitializeOnUIThread();
+ // Utility method to call InitializeForTesting on UI thread.
+ void RequestInitializeOnUIThreadForTesting();
+
// Force a rescan of cache files, for testing.
void ForceRescanOnUIThreadForTesting();
@@ -329,6 +332,9 @@ class GDataCache {
// Initializes the cache.
void Initialize();
+ // Initializes the cache with in-memory cache for testing.
achuithb 2012/08/08 05:07:31 nit: maybe add a comment saying that the in-memory
Haruki Sato 2012/08/08 05:57:38 Done. Thanks.
+ void InitializeForTesting();
+
// Deletes the cache.
void Destroy();
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_cache.cc » ('j') | chrome/browser/chromeos/gdata/gdata_cache_metadata.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698