| Index: tests/standalone/io/secure_no_builtin_roots_database_test.dart
|
| diff --git a/tests/standalone/io/secure_no_builtin_roots_test.dart b/tests/standalone/io/secure_no_builtin_roots_database_test.dart
|
| similarity index 70%
|
| copy from tests/standalone/io/secure_no_builtin_roots_test.dart
|
| copy to tests/standalone/io/secure_no_builtin_roots_database_test.dart
|
| index a93404c2c767d4144dc611456c78faefb59bae78..078ba706b10f3587dcfe7b24bcb780d7ee86eacb 100644
|
| --- a/tests/standalone/io/secure_no_builtin_roots_test.dart
|
| +++ b/tests/standalone/io/secure_no_builtin_roots_database_test.dart
|
| @@ -24,8 +24,13 @@ void testGoogleUrl() {
|
|
|
| void InitializeSSL() {
|
| // If the built-in root certificates aren't loaded, the connection
|
| - // should signal an error.
|
| - SecureSocket.initialize(useBuiltinRoots: false);
|
| + // should signal an error. Even when an external database is loaded,
|
| + // they should not be loaded.
|
| + Path scriptDir = new Path(new Options().script).directoryPath;
|
| + Path certificateDatabase = scriptDir.append('pkcert');
|
| + SecureSocket.initialize(database: certificateDatabase.toNativePath(),
|
| + password: 'dartdart',
|
| + useBuiltinRoots: false);
|
| }
|
|
|
| void main() {
|
|
|