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

Side by Side Diff: runtime/observatory/test/source_location_test.dart

Issue 1044453002: Fix static warnings in Observatory tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/observatory/test/async_generator_breakpoint_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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 4
5 import 'package:observatory/service_io.dart'; 5 import 'package:observatory/service_io.dart';
6 import 'package:observatory/debugger.dart'; 6 import 'package:observatory/debugger.dart';
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'test_helper.dart'; 8 import 'test_helper.dart';
9 import 'dart:async'; 9 import 'dart:async';
10 10
11 void testFunction() { 11 void testFunction() {
12 int i = 0; 12 int i = 0;
13 while (true) { 13 while (true) {
14 if (++i % 100000000 == 0) { // line 14 14 if (++i % 100000000 == 0) { // line 14
15 print(i); 15 print(i);
16 } 16 }
17 } 17 }
18 } 18 }
19 19
20 class TestDebugger extends Debugger { 20 class TestDebugger extends Debugger {
21 TestDebugger(this.isolate, this.stack); 21 TestDebugger(this.isolate, this.stack);
22 22
23 VM get vm => isolate.vm;
23 Isolate isolate; 24 Isolate isolate;
24 ServiceMap stack; 25 ServiceMap stack;
25 int currentFrame = 0; 26 int currentFrame = 0;
26 } 27 }
27 28
28 void source_location_dummy_function() { 29 void source_location_dummy_function() {
29 } 30 }
30 31
31 class SourceLocationTestFoo { 32 class SourceLocationTestFoo {
32 SourceLocationTestFoo(this.field); 33 SourceLocationTestFoo(this.field);
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 return SourceLocation.complete(debugger, 'SourceLocationTestFoo.q') 271 return SourceLocation.complete(debugger, 'SourceLocationTestFoo.q')
271 .then((List<String> completions) { 272 .then((List<String> completions) {
272 expect(completions.toString(), equals('[]')); 273 expect(completions.toString(), equals('[]'));
273 }); 274 });
274 }); 275 });
275 }, 276 },
276 277
277 ]; 278 ];
278 279
279 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); 280 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction);
OLDNEW
« no previous file with comments | « runtime/observatory/test/async_generator_breakpoint_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698