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

Side by Side Diff: pkg/http_server/test/utils.dart

Issue 52573002: Remove uses of Options from pkg, samples, tests, and third_party directories. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Edit comment Created 7 years, 1 month 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 | « pkg/docgen/lib/docgen.dart ('k') | pkg/intl/test/message_extraction/extract_to_json.dart » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library utils; 5 library utils;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 import "package:path/path.dart"; 10 import "package:path/path.dart";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return new HttpClient().get('localhost', port, path) 51 return new HttpClient().get('localhost', port, path)
52 .then((request) => request.close()) 52 .then((request) => request.close())
53 .then((response) => UTF8.decodeStream(response)); 53 .then((response) => UTF8.decodeStream(response));
54 } 54 }
55 55
56 56
57 const CERTIFICATE = "localhost_cert"; 57 const CERTIFICATE = "localhost_cert";
58 58
59 59
60 setupSecure() { 60 setupSecure() {
61 String scriptDir = dirname(new Options().script); 61 String scriptDir = dirname(Platform.script);
62 String certificateDatabase = join(scriptDir, 'pkcert'); 62 String certificateDatabase = join(scriptDir, 'pkcert');
63 SecureSocket.initialize(database: certificateDatabase, 63 SecureSocket.initialize(database: certificateDatabase,
64 password: 'dartdart'); 64 password: 'dartdart');
65 } 65 }
OLDNEW
« no previous file with comments | « pkg/docgen/lib/docgen.dart ('k') | pkg/intl/test/message_extraction/extract_to_json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698