| OLD | NEW |
| 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 from api_data_source import APIDataSource | 5 from api_data_source import APIDataSource |
| 6 from api_list_data_source import APIListDataSource | 6 from api_list_data_source import APIListDataSource |
| 7 from api_models import APIModels | 7 from api_models import APIModels |
| 8 from availability_finder import AvailabilityFinder | 8 from availability_finder import AvailabilityFinder |
| 9 from compiled_file_system import CompiledFileSystem | 9 from compiled_file_system import CompiledFileSystem |
| 10 from content_providers import ContentProviders | 10 from content_providers import ContentProviders |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 self.compiled_fs_factory, | 78 self.compiled_fs_factory, |
| 79 host_fs_at_trunk) | 79 host_fs_at_trunk) |
| 80 | 80 |
| 81 self.availability_finder = AvailabilityFinder( | 81 self.availability_finder = AvailabilityFinder( |
| 82 branch_utility, | 82 branch_utility, |
| 83 compiled_fs_factory, | 83 compiled_fs_factory, |
| 84 self.host_file_system_iterator, | 84 self.host_file_system_iterator, |
| 85 host_fs_at_trunk, | 85 host_fs_at_trunk, |
| 86 object_store_creator) | 86 object_store_creator) |
| 87 | 87 |
| 88 self.api_list_data_source_factory = APIListDataSource.Factory( | |
| 89 self.compiled_fs_factory, | |
| 90 host_fs_at_trunk, | |
| 91 self.features_bundle, | |
| 92 self.object_store_creator) | |
| 93 | |
| 94 self.api_data_source_factory = APIDataSource.Factory( | 88 self.api_data_source_factory = APIDataSource.Factory( |
| 95 self.compiled_fs_factory, | 89 self.compiled_fs_factory, |
| 96 host_fs_at_trunk, | 90 host_fs_at_trunk, |
| 97 svn_constants.API_PATH, | 91 svn_constants.API_PATH, |
| 98 self.availability_finder, | 92 self.availability_finder, |
| 99 branch_utility) | 93 branch_utility) |
| 100 | 94 |
| 95 self.api_list_data_source_factory = APIListDataSource.Factory( |
| 96 self.compiled_fs_factory, |
| 97 host_fs_at_trunk, |
| 98 self.features_bundle, |
| 99 self.object_store_creator, |
| 100 self.api_models, |
| 101 self.availability_finder) |
| 102 |
| 101 self.ref_resolver_factory = ReferenceResolver.Factory( | 103 self.ref_resolver_factory = ReferenceResolver.Factory( |
| 102 self.api_data_source_factory, | 104 self.api_data_source_factory, |
| 103 self.api_models, | 105 self.api_models, |
| 104 object_store_creator) | 106 object_store_creator) |
| 105 | 107 |
| 106 self.api_data_source_factory.SetReferenceResolverFactory( | 108 self.api_data_source_factory.SetReferenceResolverFactory( |
| 107 self.ref_resolver_factory) | 109 self.ref_resolver_factory) |
| 108 | 110 |
| 109 # Note: samples are super slow in the dev server because it doesn't support | 111 # Note: samples are super slow in the dev server because it doesn't support |
| 110 # async fetch, so disable them. | 112 # async fetch, so disable them. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 object_store_creator = ObjectStoreCreator(start_empty=False, | 167 object_store_creator = ObjectStoreCreator(start_empty=False, |
| 166 store_type=TestObjectStore) | 168 store_type=TestObjectStore) |
| 167 host_file_system_provider = HostFileSystemProvider.ForLocal( | 169 host_file_system_provider = HostFileSystemProvider.ForLocal( |
| 168 object_store_creator) | 170 object_store_creator) |
| 169 return ServerInstance( | 171 return ServerInstance( |
| 170 object_store_creator, | 172 object_store_creator, |
| 171 CompiledFileSystem.Factory(object_store_creator), | 173 CompiledFileSystem.Factory(object_store_creator), |
| 172 TestBranchUtility.CreateWithCannedData(), | 174 TestBranchUtility.CreateWithCannedData(), |
| 173 host_file_system_provider, | 175 host_file_system_provider, |
| 174 GithubFileSystemProvider.ForEmpty()) | 176 GithubFileSystemProvider.ForEmpty()) |
| OLD | NEW |