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

Side by Side Diff: sync/internal_api/test/test_internal_components_factory.cc

Issue 12217101: Replace FilePath with base::FilePath in some more top level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | sync/syncable/directory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "sync/internal_api/public/test/test_internal_components_factory.h" 5 #include "sync/internal_api/public/test/test_internal_components_factory.h"
6 6
7 #include "sync/sessions/sync_session_context.h" 7 #include "sync/sessions/sync_session_context.h"
8 #include "sync/syncable/in_memory_directory_backing_store.h" 8 #include "sync/syncable/in_memory_directory_backing_store.h"
9 #include "sync/syncable/on_disk_directory_backing_store.h" 9 #include "sync/syncable/on_disk_directory_backing_store.h"
10 #include "sync/syncable/invalid_directory_backing_store.h" 10 #include "sync/syncable/invalid_directory_backing_store.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 new sessions::SyncSessionContext( 43 new sessions::SyncSessionContext(
44 connection_manager, directory, workers, monitor, 44 connection_manager, directory, workers, monitor,
45 throttled_data_type_tracker, empty_listeners, debug_info_getter, 45 throttled_data_type_tracker, empty_listeners, debug_info_getter,
46 traffic_recorder, 46 traffic_recorder,
47 switches_.encryption_method == ENCRYPTION_KEYSTORE)); 47 switches_.encryption_method == ENCRYPTION_KEYSTORE));
48 48
49 } 49 }
50 50
51 scoped_ptr<syncable::DirectoryBackingStore> 51 scoped_ptr<syncable::DirectoryBackingStore>
52 TestInternalComponentsFactory::BuildDirectoryBackingStore( 52 TestInternalComponentsFactory::BuildDirectoryBackingStore(
53 const std::string& dir_name, const FilePath& backing_filepath) { 53 const std::string& dir_name, const base::FilePath& backing_filepath) {
54 switch (storage_option_) { 54 switch (storage_option_) {
55 case STORAGE_IN_MEMORY: 55 case STORAGE_IN_MEMORY:
56 return scoped_ptr<syncable::DirectoryBackingStore>( 56 return scoped_ptr<syncable::DirectoryBackingStore>(
57 new syncable::InMemoryDirectoryBackingStore(dir_name)); 57 new syncable::InMemoryDirectoryBackingStore(dir_name));
58 case STORAGE_ON_DISK: 58 case STORAGE_ON_DISK:
59 return scoped_ptr<syncable::DirectoryBackingStore>( 59 return scoped_ptr<syncable::DirectoryBackingStore>(
60 new syncable::OnDiskDirectoryBackingStore(dir_name, 60 new syncable::OnDiskDirectoryBackingStore(dir_name,
61 backing_filepath)); 61 backing_filepath));
62 case STORAGE_INVALID: 62 case STORAGE_INVALID:
63 return scoped_ptr<syncable::DirectoryBackingStore>( 63 return scoped_ptr<syncable::DirectoryBackingStore>(
64 new syncable::InvalidDirectoryBackingStore()); 64 new syncable::InvalidDirectoryBackingStore());
65 } 65 }
66 NOTREACHED(); 66 NOTREACHED();
67 return scoped_ptr<syncable::DirectoryBackingStore>(); 67 return scoped_ptr<syncable::DirectoryBackingStore>();
68 } 68 }
69 69
70 InternalComponentsFactory::Switches 70 InternalComponentsFactory::Switches
71 TestInternalComponentsFactory::GetSwitches() const { 71 TestInternalComponentsFactory::GetSwitches() const {
72 return switches_; 72 return switches_;
73 } 73 }
74 74
75 } // namespace syncer 75 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | sync/syncable/directory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698