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

Unified Diff: chrome/browser/chromeos/gdata/gdata_cache_metadata.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: rebase, fix comment text. 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_cache.cc ('k') | chrome/browser/chromeos/gdata/gdata_cache_metadata.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_cache_metadata.h
diff --git a/chrome/browser/chromeos/gdata/gdata_cache_metadata.h b/chrome/browser/chromeos/gdata/gdata_cache_metadata.h
index d6bebd516716b2ec5a52dbe65ac710e1949ac9e5..281497a7bfda8414f4622e598fff48178d031a6f 100644
--- a/chrome/browser/chromeos/gdata/gdata_cache_metadata.h
+++ b/chrome/browser/chromeos/gdata/gdata_cache_metadata.h
@@ -31,14 +31,15 @@ class GDataCacheMetadata {
virtual ~GDataCacheMetadata();
- // |pool| and |sequence_token| are used to assert that the functions are
- // called on the right sequenced worker pool with the right sequence token.
- //
- // For testing, the thread assertion can be disabled by passing NULL and
- // the default value of SequenceToken.
+ // Creates GDataCacheMetadata instance.
static scoped_ptr<GDataCacheMetadata> CreateGDataCacheMetadata(
base::SequencedTaskRunner* blocking_task_runner);
+ // Creates GDataCacheMetadata instance. This uses FakeGDataCacheMetadata,
+ // which is an in-memory implmentation and faster than GDataCacheMetadataDB.
+ static scoped_ptr<GDataCacheMetadata> CreateGDataCacheMetadataForTesting(
+ base::SequencedTaskRunner* blocking_task_runner);
+
// Initialize the cache metadata store.
virtual void Initialize(const std::vector<FilePath>& cache_paths) = 0;
// Adds a new cache entry corresponding to |resource_id| if it doesn't
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_cache.cc ('k') | chrome/browser/chromeos/gdata/gdata_cache_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698