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

Unified Diff: runtime/observatory/tests/service/reachable_size_test.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: Created 3 years, 9 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: runtime/observatory/tests/service/reachable_size_test.dart
diff --git a/runtime/observatory/tests/service/reachable_size_test.dart b/runtime/observatory/tests/service/reachable_size_test.dart
index 6ef94e6f29037594f5e7ccaf617c1d21ef9dae08..ae6827e817c8e9bddd076e766adf3b97fe7b2cb5 100644
--- a/runtime/observatory/tests/service/reachable_size_test.dart
+++ b/runtime/observatory/tests/service/reachable_size_test.dart
@@ -40,33 +40,33 @@ getRetainedSize(ServiceObject obj) {
}
var tests = [
- (Isolate isolate) async {
- Instance p1 = await rootLibraryFieldValue(isolate, "p1");
- Instance p2 = await rootLibraryFieldValue(isolate, "p2");
+(Isolate isolate) async {
+ Instance p1 = await rootLibraryFieldValue(isolate, "p1");
+ Instance p2 = await rootLibraryFieldValue(isolate, "p2");
- // In general, shallow <= retained <= reachable. In this program,
- // 0 < shallow < retained < reachable.
+ // In general, shallow <= retained <= reachable. In this program,
+ // 0 < shallow < retained < reachable.
- int p1_shallow = p1.size;
- int p1_retained = await getRetainedSize(p1);
- int p1_reachable = await getReachableSize(p1);
+ int p1_shallow = p1.size;
+ int p1_retained = await getRetainedSize(p1);
+ int p1_reachable = await getReachableSize(p1);
- expect(0, lessThan(p1_shallow));
- expect(p1_shallow, lessThan(p1_retained));
- expect(p1_retained, lessThan(p1_reachable));
+ expect(0, lessThan(p1_shallow));
+ expect(p1_shallow, lessThan(p1_retained));
+ expect(p1_retained, lessThan(p1_reachable));
- int p2_shallow = p2.size;
- int p2_retained = await getRetainedSize(p2);
- int p2_reachable = await getReachableSize(p2);
+ int p2_shallow = p2.size;
+ int p2_retained = await getRetainedSize(p2);
+ int p2_reachable = await getReachableSize(p2);
- expect(0, lessThan(p2_shallow));
- expect(p2_shallow, lessThan(p2_retained));
- expect(p2_retained, lessThan(p2_reachable));
+ expect(0, lessThan(p2_shallow));
+ expect(p2_shallow, lessThan(p2_retained));
+ expect(p2_retained, lessThan(p2_reachable));
- expect(p1_shallow, equals(p2_shallow));
- expect(p1_retained, equals(p2_retained));
- expect(p1_reachable, equals(p2_reachable));
- },
+ expect(p1_shallow, equals(p2_shallow));
+ expect(p1_retained, equals(p2_retained));
+ expect(p1_reachable, equals(p2_reachable));
+},
];
main(args) => runIsolateTests(args, tests, testeeBefore: buildGraph);
« no previous file with comments | « runtime/observatory/tests/service/process_service_test.dart ('k') | runtime/observatory/tests/service/read_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698