| 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..6b25955ddd83371e5477ab22fa47b01429afdee7 100644
|
| --- a/sync/internal_api/public/test/test_internal_components_factory.h
|
| +++ b/sync/internal_api/public/test/test_internal_components_factory.h
|
| @@ -9,20 +9,11 @@
|
|
|
| namespace syncer {
|
|
|
| -enum StorageOption {
|
| - // BuildDirectoryBackingStore should not use persistent on-disk storage.
|
| - STORAGE_IN_MEMORY,
|
| - // Use this if you want BuildDirectoryBackingStore to create a real
|
| - // on disk store.
|
| - STORAGE_ON_DISK,
|
| - // Use this to test the case where a directory fails to load.
|
| - STORAGE_INVALID
|
| -};
|
| -
|
| class TestInternalComponentsFactory : public InternalComponentsFactory {
|
| public:
|
| explicit TestInternalComponentsFactory(const Switches& switches,
|
| - StorageOption option);
|
| + StorageOption option,
|
| + StorageOption expected_storage);
|
| virtual ~TestInternalComponentsFactory();
|
|
|
| virtual scoped_ptr<SyncScheduler> BuildScheduler(
|
| @@ -41,6 +32,7 @@ class TestInternalComponentsFactory : public InternalComponentsFactory {
|
|
|
| virtual scoped_ptr<syncable::DirectoryBackingStore>
|
| BuildDirectoryBackingStore(
|
| + StorageOption storage,
|
| const std::string& dir_name,
|
| const base::FilePath& backing_filepath) OVERRIDE;
|
|
|
| @@ -48,7 +40,8 @@ class TestInternalComponentsFactory : public InternalComponentsFactory {
|
|
|
| private:
|
| const Switches switches_;
|
| - const StorageOption storage_option_;
|
| + const StorageOption storage_override_;
|
| + const StorageOption expected_storage_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory);
|
| };
|
|
|