| 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 directory_zipper import DirectoryZipper | 10 from directory_zipper import DirectoryZipper |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 self.api_data_source_factory = APIDataSource.Factory( | 96 self.api_data_source_factory = APIDataSource.Factory( |
| 97 self.compiled_fs_factory, | 97 self.compiled_fs_factory, |
| 98 host_fs_at_trunk, | 98 host_fs_at_trunk, |
| 99 svn_constants.API_PATH, | 99 svn_constants.API_PATH, |
| 100 self.availability_finder, | 100 self.availability_finder, |
| 101 branch_utility) | 101 branch_utility) |
| 102 | 102 |
| 103 self.ref_resolver_factory = ReferenceResolver.Factory( | 103 self.ref_resolver_factory = ReferenceResolver.Factory( |
| 104 self.api_data_source_factory, | 104 self.api_data_source_factory, |
| 105 self.api_list_data_source_factory, | 105 self.api_models, |
| 106 object_store_creator) | 106 object_store_creator) |
| 107 | 107 |
| 108 self.api_data_source_factory.SetReferenceResolverFactory( | 108 self.api_data_source_factory.SetReferenceResolverFactory( |
| 109 self.ref_resolver_factory) | 109 self.ref_resolver_factory) |
| 110 | 110 |
| 111 # 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 |
| 112 # async fetch, so disable them. | 112 # async fetch, so disable them. |
| 113 if IsDevServer(): | 113 if IsDevServer(): |
| 114 extension_samples_fs = EmptyDirFileSystem() | 114 extension_samples_fs = EmptyDirFileSystem() |
| 115 app_samples_fs = EmptyDirFileSystem() | 115 app_samples_fs = EmptyDirFileSystem() |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 object_store_creator = ObjectStoreCreator(start_empty=False, | 172 object_store_creator = ObjectStoreCreator(start_empty=False, |
| 173 store_type=TestObjectStore) | 173 store_type=TestObjectStore) |
| 174 host_file_system_provider = HostFileSystemProvider.ForLocal( | 174 host_file_system_provider = HostFileSystemProvider.ForLocal( |
| 175 object_store_creator) | 175 object_store_creator) |
| 176 return ServerInstance( | 176 return ServerInstance( |
| 177 object_store_creator, | 177 object_store_creator, |
| 178 CompiledFileSystem.Factory(object_store_creator), | 178 CompiledFileSystem.Factory(object_store_creator), |
| 179 TestBranchUtility.CreateWithCannedData(), | 179 TestBranchUtility.CreateWithCannedData(), |
| 180 host_file_system_provider, | 180 host_file_system_provider, |
| 181 GithubFileSystemProvider.ForEmpty()) | 181 GithubFileSystemProvider.ForEmpty()) |
| OLD | NEW |