| 
									
										
										
										
											2016-06-23 09:47:54 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-17 09:24:44 -07:00
										 |  |  | import {ElementSchemaRegistry, ResourceLoader, UrlResolver} from '@angular/compiler'; | 
					
						
							| 
									
										
										
										
											2016-08-24 13:39:44 -07:00
										 |  |  | import {Provider} from '@angular/core'; | 
					
						
							| 
									
										
										
										
											2016-08-30 18:07:40 -07:00
										 |  |  | import {MockResourceLoader} from './resource_loader_mock'; | 
					
						
							|  |  |  | import {MockSchemaRegistry} from './schema_registry_mock'; | 
					
						
							| 
									
										
										
										
											2016-08-24 13:39:44 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-30 18:07:40 -07:00
										 |  |  | export function createUrlResolverWithoutPackagePrefix(): UrlResolver { | 
					
						
							|  |  |  |   return new UrlResolver(); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2015-09-14 15:59:09 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-17 16:37:31 -07:00
										 |  |  | // This provider is put here just so that we can access it from multiple
 | 
					
						
							|  |  |  | // internal test packages.
 | 
					
						
							|  |  |  | // TODO: get rid of it or move to a separate @angular/internal_testing package
 | 
					
						
							| 
									
										
										
										
											2016-08-24 13:39:44 -07:00
										 |  |  | export var TEST_COMPILER_PROVIDERS: Provider[] = [ | 
					
						
							| 
									
										
										
										
											2016-09-28 02:10:02 +02:00
										 |  |  |   {provide: ElementSchemaRegistry, useValue: new MockSchemaRegistry({}, {}, {}, [], [])}, | 
					
						
							| 
									
										
										
										
											2016-08-17 09:24:44 -07:00
										 |  |  |   {provide: ResourceLoader, useClass: MockResourceLoader}, | 
					
						
							| 
									
										
										
										
											2016-06-02 17:30:40 -07:00
										 |  |  |   {provide: UrlResolver, useFactory: createUrlResolverWithoutPackagePrefix} | 
					
						
							| 
									
										
										
										
											2015-10-12 10:23:51 -07:00
										 |  |  | ]; |