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

Unified Diff: tests/standalone/io/secure_no_builtin_roots_database_test.dart

Issue 13985012: dart:io | Change the way SecureSocket initializes the NSS library with an empty database. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« runtime/bin/secure_socket.cc ('K') | « runtime/bin/secure_socket.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« runtime/bin/secure_socket.cc ('K') | « runtime/bin/secure_socket.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698