| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | import {SpyObject} from '@angular/core/testing/testing_internal'; | 
					
						
							|  |  |  | import {ReflectiveInjector, provide} from '@angular/core'; | 
					
						
							|  |  |  | import {global} from '../../../src/facade/lang'; | 
					
						
							|  |  |  | import {ApplicationRef, ApplicationRef_} from '@angular/core/src/application_ref'; | 
					
						
							| 
									
										
										
										
											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 { | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   injector; | 
					
						
							|  |  |  |   constructor() { | 
					
						
							|  |  |  |     super(); | 
					
						
							| 
									
										
										
										
											2016-04-14 12:35:24 -07:00
										 |  |  |     this.injector = ReflectiveInjector.resolveAndCreate( | 
					
						
							|  |  |  |         [provide(ApplicationRef, {useClass: SpyApplicationRef})]); | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export function callNgProfilerTimeChangeDetection(config?): void { | 
					
						
							|  |  |  |   (<any>global).ng.profiler.timeChangeDetection(config); | 
					
						
							|  |  |  | } |