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

Side by Side Diff: runtime/observatory/tests/service/auth_token_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 unified diff | Download patch
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:async'; 6 import 'dart:async';
7 import 'dart:developer'; 7 import 'dart:developer';
8 import 'dart:io' as io; 8 import 'dart:io' as io;
9 import 'package:observatory/service_io.dart'; 9 import 'package:observatory/service_io.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 25 matching lines...) Expand all
36 // Try connecting to the server with the auth token, it should succeed. 36 // Try connecting to the server with the auth token, it should succeed.
37 try { 37 try {
38 var request = await httpClient.getUrl(info.serverUri); 38 var request = await httpClient.getUrl(info.serverUri);
39 expect(true, true); 39 expect(true, true);
40 } catch (e) { 40 } catch (e) {
41 expect(true, false); 41 expect(true, false);
42 } 42 }
43 } 43 }
44 44
45 var tests = [ 45 var tests = [
46 (Isolate isolate) async { 46 (Isolate isolate) async {
47 await isolate.reload(); 47 await isolate.reload();
48 // Just getting here means that the testee enabled the service protocol 48 // Just getting here means that the testee enabled the service protocol
49 // web server. 49 // web server.
50 expect(true, true); 50 expect(true, true);
51 } 51 }
52 ]; 52 ];
53 53
54 main(args) => runIsolateTests(args, tests, 54 main(args) => runIsolateTests(args,
55 testeeBefore: testeeBefore, 55 tests,
56 // the testee is responsible for starting the 56 testeeBefore: testeeBefore,
57 // web server. 57 // the testee is responsible for starting the
58 testeeControlsServer: true, 58 // web server.
59 useAuthToken: true); 59 testeeControlsServer: true,
60 useAuthToken: true);
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/auth_token1_test.dart ('k') | runtime/observatory/tests/service/bad_reload_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698