Chromium Code Reviews

Side by Side Diff: sync/internal_api/public/test/test_internal_components_factory.h

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_
7 7
8 #include "sync/internal_api/public/internal_components_factory.h" 8 #include "sync/internal_api/public/internal_components_factory.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 enum StorageOption { 12 enum StorageOption {
13 // BuildDirectoryBackingStore should not use persistent on-disk storage. 13 // BuildDirectoryBackingStore should not use persistent on-disk storage.
14 STORAGE_IN_MEMORY, 14 STORAGE_IN_MEMORY,
15 // Use this if you want BuildDirectoryBackingStore to create a real 15 // Use this if you want BuildDirectoryBackingStore to create a real
16 // on disk store. 16 // on disk store.
17 STORAGE_ON_DISK, 17 STORAGE_ON_DISK,
18 // Use this to test the case where a directory fails to load. 18 // Use this to test the case where a directory fails to load.
19 STORAGE_INVALID 19 STORAGE_INVALID
20 }; 20 };
21 21
22 class TestInternalComponentsFactory : public InternalComponentsFactory { 22 class TestInternalComponentsFactory : public InternalComponentsFactory {
23 public: 23 public:
24 explicit TestInternalComponentsFactory(const Switches& switches, 24 TestInternalComponentsFactory(const Switches& switches,
25 StorageOption option); 25 StorageOption option);
26 virtual ~TestInternalComponentsFactory(); 26 virtual ~TestInternalComponentsFactory();
27 27
28 virtual scoped_ptr<SyncScheduler> BuildScheduler( 28 virtual scoped_ptr<SyncScheduler> BuildScheduler(
29 const std::string& name, 29 const std::string& name,
30 sessions::SyncSessionContext* context) OVERRIDE; 30 sessions::SyncSessionContext* context) OVERRIDE;
31 31
32 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext( 32 virtual scoped_ptr<sessions::SyncSessionContext> BuildContext(
33 ServerConnectionManager* connection_manager, 33 ServerConnectionManager* connection_manager,
34 syncable::Directory* directory, 34 syncable::Directory* directory,
35 const std::vector<ModelSafeWorker*> workers, 35 const std::vector<ModelSafeWorker*> workers,
(...skipping 13 matching lines...)
49 private: 49 private:
50 const Switches switches_; 50 const Switches switches_;
51 const StorageOption storage_option_; 51 const StorageOption storage_option_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory); 53 DISALLOW_COPY_AND_ASSIGN(TestInternalComponentsFactory);
54 }; 54 };
55 55
56 } // namespace syncer 56 } // namespace syncer
57 57
58 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_ 58 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_TEST_INTERNAL_COMPONENTS_FACTORY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/internal_components_factory_impl.h ('k') | ui/base/dialogs/gtk/select_file_dialog_impl.h » ('j') | no next file with comments »

Powered by Google App Engine