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

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

Issue 13860006: Fix static type errors in a number of tests (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
Index: tests/standalone/io/raw_secure_server_socket_test.dart
diff --git a/tests/standalone/io/raw_secure_server_socket_test.dart b/tests/standalone/io/raw_secure_server_socket_test.dart
index 873cfba471ec79c1cba003dc6b045721e5efb546..3027046557aa8367565305014285226a3436cd1c 100644
--- a/tests/standalone/io/raw_secure_server_socket_test.dart
+++ b/tests/standalone/io/raw_secure_server_socket_test.dart
@@ -16,15 +16,6 @@ const SERVER_ADDRESS = "127.0.0.1";
const HOST_NAME = "localhost";
const CERTIFICATE = "localhost_cert";
-void testArguments() {
- Expect.throws(() =>
- RawSecureServerSocket.bind(SERVER_ADDRESS, 65536, 5, CERTIFICATE));
- Expect.throws(() =>
- RawSecureServerSocket.bind(SERVER_ADDRESS, -1, CERTIFICATE));
- Expect.throws(() =>
- RawSecureServerSocket.bind(SERVER_ADDRESS, 0, -1, CERTIFICATE));
-}
-
void testSimpleBind() {
ReceivePort port = new ReceivePort();
RawSecureServerSocket.bind(SERVER_ADDRESS, 0, 5, CERTIFICATE).then((s) {
@@ -168,7 +159,7 @@ void testSimpleReadWrite(bool listenSecure,
[bool postponeSecure = false]) {
if (handshakeBeforeSecure == true &&
(listenSecure == true || connectSecure == true)) {
- Expect.fails("Invalid arguments to testSimpleReadWrite");
+ Expect.fail("Invalid arguments to testSimpleReadWrite");
}
ReceivePort port = new ReceivePort();
@@ -453,7 +444,6 @@ main() {
SecureSocket.initialize(database: certificateDatabase.toNativePath(),
password: 'dartdart',
useBuiltinRoots: false);
- testArguments();
testSimpleBind();
testInvalidBind();
testSimpleConnect(CERTIFICATE);

Powered by Google App Engine
This is Rietveld 408576698