| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 | 5 |
| 6 // TODO(7157): Remove this test once the bug is fixed. | 6 // TODO(7157): Remove this test once the bug is fixed. |
| 7 // This is a copy of web_socket_test.dart with the secure connection | 7 // This is a copy of web_socket_test.dart with the secure connection |
| 8 // tests disabled, so it does not crash on Windows. | 8 // tests disabled, so it does not crash on Windows. |
| 9 import "package:expect/expect.dart"; |
| 9 import "dart:async"; | 10 import "dart:async"; |
| 10 import "dart:io"; | 11 import "dart:io"; |
| 11 import "dart:isolate"; | 12 import "dart:isolate"; |
| 12 import "dart:scalarlist"; | 13 import "dart:scalarlist"; |
| 13 import "dart:uri"; | 14 import "dart:uri"; |
| 14 | 15 |
| 15 const SERVER_ADDRESS = "127.0.0.1"; | 16 const SERVER_ADDRESS = "127.0.0.1"; |
| 16 const HOST_NAME = "localhost"; | 17 const HOST_NAME = "localhost"; |
| 17 | 18 |
| 18 | 19 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 var testPkcertDatabase = | 372 var testPkcertDatabase = |
| 372 new Path(new Options().script).directoryPath.append("pkcert/"); | 373 new Path(new Options().script).directoryPath.append("pkcert/"); |
| 373 SecureSocket.initialize(database: testPkcertDatabase.toNativePath(), | 374 SecureSocket.initialize(database: testPkcertDatabase.toNativePath(), |
| 374 password: "dartdart"); | 375 password: "dartdart"); |
| 375 } | 376 } |
| 376 | 377 |
| 377 | 378 |
| 378 main() { | 379 main() { |
| 379 new SecurityConfiguration(secure: false).runTests(); | 380 new SecurityConfiguration(secure: false).runTests(); |
| 380 } | 381 } |
| OLD | NEW |