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

Side by Side Diff: runtime/observatory/tests/service/vm_timeline_flags_test.dart

Issue 1726773002: Refactor service tests in preparation of running on sky_shell (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « runtime/observatory/tests/service/vm_restart_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // VMOptions=--error_on_bad_type --error_on_bad_override 4 // VMOptions=--error_on_bad_type --error_on_bad_override
5 5
6 import 'dart:developer'; 6 import 'dart:developer';
7 import 'package:observatory/service_io.dart'; 7 import 'package:observatory/service_io.dart';
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 9 import 'service_test_common.dart';
10 import 'test_helper.dart'; 10 import 'test_helper.dart';
11 11
12 primeDartTimeline() { 12 primeDartTimeline() {
13 while (true) { 13 while (true) {
14 Timeline.startSync('apple'); 14 Timeline.startSync('apple');
15 Timeline.finishSync(); 15 Timeline.finishSync();
16 debugger(); 16 debugger();
17 } 17 }
18 } 18 }
19 19
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Confirm that zero non-Dart events are added. 105 // Confirm that zero non-Dart events are added.
106 expect( 106 expect(
107 filterEvents(result['traceEvents'], isNotDartAndMetaData).length, 107 filterEvents(result['traceEvents'], isNotDartAndMetaData).length,
108 equals(0)); 108 equals(0));
109 }, 109 },
110 ]; 110 ];
111 111
112 main(args) async => runIsolateTests(args, 112 main(args) async => runIsolateTests(args,
113 tests, 113 tests,
114 testeeConcurrent: primeDartTimeline); 114 testeeConcurrent: primeDartTimeline);
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/vm_restart_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698