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

Side by Side Diff: tests/standalone/io/web_socket_test.dart

Issue 19967002: Remove uses of Path class from tests/standalone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix windows error Created 7 years, 5 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
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 // VMOptions= 5 // VMOptions=
6 // VMOptions=--short_socket_read 6 // VMOptions=--short_socket_read
7 // VMOptions=--short_socket_write 7 // VMOptions=--short_socket_write
8 // VMOptions=--short_socket_read --short_socket_write 8 // VMOptions=--short_socket_read --short_socket_write
9 9
10 import "package:expect/expect.dart"; 10 import "package:expect/expect.dart";
11 import "package:path/path.dart";
11 import "dart:async"; 12 import "dart:async";
12 import "dart:io"; 13 import "dart:io";
13 import "dart:isolate"; 14 import "dart:isolate";
14 import "dart:typed_data"; 15 import "dart:typed_data";
15 16
16 const String CERT_NAME = 'localhost_cert'; 17 const String CERT_NAME = 'localhost_cert';
17 const String HOST_NAME = 'localhost'; 18 const String HOST_NAME = 'localhost';
18 19
19 /** 20 /**
20 * A SecurityConfiguration lets us run the tests over HTTP or HTTPS. 21 * A SecurityConfiguration lets us run the tests over HTTP or HTTPS.
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 testImmediateCloseClient(); 398 testImmediateCloseClient();
398 testNoUpgrade(); 399 testNoUpgrade();
399 testUsePOST(); 400 testUsePOST();
400 testConnections(10, 3002, "Got tired"); 401 testConnections(10, 3002, "Got tired");
401 testIndivitualUpgrade(5); 402 testIndivitualUpgrade(5);
402 } 403 }
403 } 404 }
404 405
405 406
406 void initializeSSL() { 407 void initializeSSL() {
407 var testPkcertDatabase = 408 var testPkcertDatabase = join(dirname(Platform.script), 'pkcert');
408 new Path(Platform.script).directoryPath.append("pkcert/"); 409 SecureSocket.initialize(database: testPkcertDatabase,
409 SecureSocket.initialize(database: testPkcertDatabase.toNativePath(),
410 password: "dartdart"); 410 password: "dartdart");
411 } 411 }
412 412
413 413
414 main() { 414 main() {
415 new SecurityConfiguration(secure: false).runTests(); 415 new SecurityConfiguration(secure: false).runTests();
416 initializeSSL(); 416 initializeSSL();
417 new SecurityConfiguration(secure: true).runTests(); 417 new SecurityConfiguration(secure: true).runTests();
418 } 418 }
OLDNEW
« no previous file with comments | « tests/standalone/io/test_extension_test.dart ('k') | tests/standalone/io/windows_environment_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698