Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: third_party/pkg/di/benchmark/static_injector_benchmark.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/di/benchmark/static_injector_benchmark.dart
diff --git a/third_party/pkg/di/benchmark/static_injector_benchmark.dart b/third_party/pkg/di/benchmark/static_injector_benchmark.dart
index 101543802441776adf89e155b605234b161f02cf..b9d4efba0b750e7690f22b54b9339c36edd6ffbb 100644
--- a/third_party/pkg/di/benchmark/static_injector_benchmark.dart
+++ b/third_party/pkg/di/benchmark/static_injector_benchmark.dart
@@ -1,15 +1,15 @@
-import 'package:benchmark_harness/benchmark_harness.dart';
import 'package:di/static_injector.dart';
import 'injector_benchmark_common.dart';
main() {
- var typeFactories = new Map();
- typeFactories[A] = (f) => new A(f(B), f(C));
- typeFactories[B] = (f) => new B(f(D), f(E));
- typeFactories[C] = (f) => new C();
- typeFactories[D] = (f) => new D();
- typeFactories[E] = (f) => new E();
+ var typeFactories = {
+ A: (f) => new A(f(B), f(C)),
+ B: (f) => new B(f(D), f(E)),
+ C: (f) => new C(),
+ D: (f) => new D(),
+ E: (f) => new E(),
+ };
new InjectorBenchmark('StaticInjectorBenchmark',
(m) => new StaticInjector(modules: m, typeFactories: typeFactories)
« no previous file with comments | « third_party/pkg/di/benchmark/injector_benchmark_common.dart ('k') | third_party/pkg/di/lib/annotations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698