| 
									
										
										
										
											2015-10-13 00:29:13 -07:00
										 |  |  | import 'package:angular2/testing_internal.dart' show SpyObject; | 
					
						
							| 
									
										
										
										
											2016-04-14 12:35:24 -07:00
										 |  |  | import 'package:angular2/core.dart' show Injector, ReflectiveInjector, bind; | 
					
						
							| 
									
										
										
										
											2015-10-28 10:34:13 -07:00
										 |  |  | import 'package:angular2/src/core/application_ref.dart' show ApplicationRef; | 
					
						
							| 
									
										
										
										
											2016-04-13 17:05:17 -07:00
										 |  |  | import 'package:angular2/src/core/linker/component_factory.dart' | 
					
						
							|  |  |  |     show ComponentRef; | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  | import 'dart:js'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @proxy | 
					
						
							| 
									
										
										
										
											2015-10-28 10:34:13 -07:00
										 |  |  | class SpyApplicationRef extends SpyObject implements ApplicationRef { | 
					
						
							|  |  |  |   tick() {} | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @proxy | 
					
						
							| 
									
										
										
										
											2016-04-30 10:52:04 -07:00
										 |  |  | class SpyComponentRef extends SpyObject implements ComponentRef<dynamic> { | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   Injector injector; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-15 17:13:48 -07:00
										 |  |  |   SpyComponentRef() { | 
					
						
							| 
									
										
										
										
											2016-04-14 12:35:24 -07:00
										 |  |  |     this.injector = ReflectiveInjector | 
					
						
							| 
									
										
										
										
											2016-01-12 11:36:58 -08:00
										 |  |  |         .resolveAndCreate([bind(ApplicationRef).toClass(SpyApplicationRef)]); | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void callNgProfilerTimeChangeDetection([config]) { | 
					
						
							| 
									
										
										
										
											2015-09-15 17:13:48 -07:00
										 |  |  |   context['ng']['profiler'] | 
					
						
							|  |  |  |       .callMethod('timeChangeDetection', config != null ? [config] : []); | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  | } |