| 
									
										
										
										
											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
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-01 15:18:10 -08:00
										 |  |  | import {ReflectiveInjector, ɵglobal as global} from '@angular/core'; | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | import {ApplicationRef, ApplicationRef_} from '@angular/core/src/application_ref'; | 
					
						
							| 
									
										
										
										
											2016-06-08 16:38:52 -07:00
										 |  |  | import {SpyObject} from '@angular/core/testing/testing_internal'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-28 10:34:13 -07:00
										 |  |  | export class SpyApplicationRef extends SpyObject { | 
					
						
							|  |  |  |   constructor() { super(ApplicationRef_); } | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-15 17:13:48 -07:00
										 |  |  | export class SpyComponentRef extends SpyObject { | 
					
						
							| 
									
										
										
										
											2016-06-08 15:45:15 -07:00
										 |  |  |   injector: any /** TODO #9100 */; | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   constructor() { | 
					
						
							|  |  |  |     super(); | 
					
						
							| 
									
										
										
										
											2016-04-14 12:35:24 -07:00
										 |  |  |     this.injector = ReflectiveInjector.resolveAndCreate( | 
					
						
							| 
									
										
										
										
											2016-06-02 17:30:40 -07:00
										 |  |  |         [{provide: ApplicationRef, useClass: SpyApplicationRef}]); | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-08 15:45:15 -07:00
										 |  |  | export function callNgProfilerTimeChangeDetection(config?: any /** TODO #9100 */): void { | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   (<any>global).ng.profiler.timeChangeDetection(config); | 
					
						
							|  |  |  | } |