| 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 self.availability_finder, | 91 self.availability_finder, |
| 98 branch_utility) | 92 branch_utility) |
| 99 | 93 |
| 94 self.api_list_data_source_factory = APIListDataSource.Factory( |
| 95 self.compiled_fs_factory, |
| 96 host_fs_at_trunk, |
| 97 self.features_bundle, |
| 98 self.object_store_creator, |
| 99 self.api_models, |
| 100 self.availability_finder) |
| 101 |
| 100 self.ref_resolver_factory = ReferenceResolver.Factory( | 102 self.ref_resolver_factory = ReferenceResolver.Factory( |
| 101 self.api_data_source_factory, | 103 self.api_data_source_factory, |
| 102 self.api_models, | 104 self.api_models, |
| 103 object_store_creator) | 105 object_store_creator) |
| 104 | 106 |
| 105 self.api_data_source_factory.SetReferenceResolverFactory( | 107 self.api_data_source_factory.SetReferenceResolverFactory( |
| 106 self.ref_resolver_factory) | 108 self.ref_resolver_factory) |
| 107 | 109 |
| 108 # Note: samples are super slow in the dev server because it doesn't support | 110 # Note: samples are super slow in the dev server because it doesn't support |
| 109 # async fetch, so disable them. | 111 # async fetch, so disable them. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 object_store_creator = ObjectStoreCreator(start_empty=False, | 161 object_store_creator = ObjectStoreCreator(start_empty=False, |
| 160 store_type=TestObjectStore) | 162 store_type=TestObjectStore) |
| 161 host_file_system_provider = HostFileSystemProvider.ForLocal( | 163 host_file_system_provider = HostFileSystemProvider.ForLocal( |
| 162 object_store_creator) | 164 object_store_creator) |
| 163 return ServerInstance( | 165 return ServerInstance( |
| 164 object_store_creator, | 166 object_store_creator, |
| 165 CompiledFileSystem.Factory(object_store_creator), | 167 CompiledFileSystem.Factory(object_store_creator), |
| 166 TestBranchUtility.CreateWithCannedData(), | 168 TestBranchUtility.CreateWithCannedData(), |
| 167 host_file_system_provider, | 169 host_file_system_provider, |
| 168 GithubFileSystemProvider.ForEmpty()) | 170 GithubFileSystemProvider.ForEmpty()) |
| OLD | NEW |