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

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

Issue 2423593002: Add test directive to include other files used by a test in its compiled output directory. (Closed)
Patch Set: Created 4 years, 2 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
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 // OtherResources=certificates/server_chain.pem
6 // OtherResources=certificates/server_key.pem
7 // OtherResources=certificates/trusted_certs.pem
8
5 // This test verifies that the bad certificate callback works. 9 // This test verifies that the bad certificate callback works.
6 10
7 import "dart:async"; 11 import "dart:async";
8 import "dart:io"; 12 import "dart:io";
9 13
10 import "package:expect/expect.dart"; 14 import "package:expect/expect.dart";
11 15
12 final HOST_NAME = 'localhost'; 16 final HOST_NAME = 'localhost';
13 17
14 String localFile(path) => Platform.script.resolve(path).toFilePath(); 18 String localFile(path) => Platform.script.resolve(path).toFilePath();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 Expect.notEquals(result, 'pass'); 79 Expect.notEquals(result, 'pass');
76 if (result == 'fail') { 80 if (result == 'fail') {
77 Expect.isTrue(error is HandshakeException || error is ArgumentError); 81 Expect.isTrue(error is HandshakeException || error is ArgumentError);
78 } else if (result == 'throw') { 82 } else if (result == 'throw') {
79 Expect.isTrue(error is CustomException); 83 Expect.isTrue(error is CustomException);
80 } else { 84 } else {
81 Expect.fail('Unknown expectation $result'); 85 Expect.fail('Unknown expectation $result');
82 } 86 }
83 } 87 }
84 } 88 }
OLDNEW
« no previous file with comments | « tests/standalone/io/resolve_symbolic_links_test.dart ('k') | tests/standalone/io/secure_client_raw_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698