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

Unified Diff: sync/internal_api/public/test/test_internal_components_factory.h

Issue 235053006: Add sync manager classes for backup/rollback: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: sync/internal_api/public/test/test_internal_components_factory.h
diff --git a/sync/internal_api/public/test/test_internal_components_factory.h b/sync/internal_api/public/test/test_internal_components_factory.h
index 3b7d3c5a87741c140bca9121fce6d32cd231bf90..a97172007aca13bb232dd4f830b7b9dbc32ae1fe 100644
--- a/sync/internal_api/public/test/test_internal_components_factory.h
+++ b/sync/internal_api/public/test/test_internal_components_factory.h
@@ -21,8 +21,15 @@ enum StorageOption {
class TestInternalComponentsFactory : public InternalComponentsFactory {
public:
+ // Create SyncSessionContext and DirectoryBackingStore using specified
+ // settings.
explicit TestInternalComponentsFactory(const Switches& switches,
StorageOption option);
+ // Create SyncSessionContext using default settings. Return injected |store|
+ // when BuildDirectoryBackingStore() is called so that injector can check
+ // store data.
+ explicit TestInternalComponentsFactory(
+ scoped_ptr<syncable::DirectoryBackingStore> store);
virtual ~TestInternalComponentsFactory();
virtual scoped_ptr<SyncScheduler> BuildScheduler(
@@ -50,6 +57,8 @@ class TestInternalComponentsFactory : public InternalComponentsFactory {
const Switches switches_;
const StorageOption storage_option_;
+ scoped_ptr<syncable::DirectoryBackingStore> store_;
+
DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory);
};

Powered by Google App Engine
This is Rietveld 408576698