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

Unified Diff: third_party/pkg/di/benchmark/injector_benchmark_common.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
« no previous file with comments | « third_party/pkg/di/REVISION ('k') | third_party/pkg/di/benchmark/static_injector_benchmark.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/di/benchmark/injector_benchmark_common.dart
diff --git a/third_party/pkg/di/benchmark/injector_benchmark_common.dart b/third_party/pkg/di/benchmark/injector_benchmark_common.dart
index 88344f5450e9b0ae0ef68c36d6a9907970521a58..ce1cbd905f0b9790437dd37b31b7f4f6c2553d82 100644
--- a/third_party/pkg/di/benchmark/injector_benchmark_common.dart
+++ b/third_party/pkg/di/benchmark/injector_benchmark_common.dart
@@ -26,8 +26,12 @@ class InjectorBenchmark extends BenchmarkBase {
..type(A)
..type(B)
..type(C)
+ ..type(C, withAnnotation: AnnOne, implementedBy: COne )
..type(D)
- ..type(E);
+ ..type(E)
+ ..type(E, withAnnotation: AnnTwo, implementedBy: ETwo )
+ ..type(F)
+ ..type(G);
}
teardown() {
@@ -35,6 +39,14 @@ class InjectorBenchmark extends BenchmarkBase {
}
}
+class AnnOne {
+ const AnnOne();
+}
+
+class AnnTwo {
+ const AnnTwo();
+}
+
class A {
A(B b, C c) {
count++;
@@ -53,6 +65,12 @@ class C {
}
}
+class COne {
+ COne() {
+ count++;
+ }
+}
+
class D {
D() {
count++;
@@ -64,3 +82,21 @@ class E {
count++;
}
}
+
+class ETwo {
+ ETwo() {
+ count++;
+ }
+}
+
+class F {
+ F(@AnnOne() C c, D d) {
+ count++;
+ }
+}
+
+class G {
+ G(@AnnTwo() E) {
+ count++;
+ }
+}
« no previous file with comments | « third_party/pkg/di/REVISION ('k') | third_party/pkg/di/benchmark/static_injector_benchmark.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698