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

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

Issue 15820008: Remove library dart:crypto (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « tests/lib/crypto/sha256_test.dart ('k') | tests/standalone/io/http_auth_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import "package:crypto/crypto.dart";
5 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
6 import 'dart:async'; 7 import 'dart:async';
7 import 'dart:crypto';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:utf'; 10 import 'dart:utf';
11 11
12 class Server { 12 class Server {
13 HttpServer server; 13 HttpServer server;
14 int unauthCount = 0; // Counter of the 401 responses. 14 int unauthCount = 0; // Counter of the 401 responses.
15 int successCount = 0; // Counter of the successful responses. 15 int successCount = 0; // Counter of the successful responses.
16 int nonceCount = 0; // Counter of use of current nonce. 16 int nonceCount = 0; // Counter of use of current nonce.
17 var ha1; 17 var ha1;
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 testAuthenticateCallback(null, null); 390 testAuthenticateCallback(null, null);
391 testAuthenticateCallback("MD5", null); 391 testAuthenticateCallback("MD5", null);
392 testAuthenticateCallback("MD5", "auth"); 392 testAuthenticateCallback("MD5", "auth");
393 testAuthenticateCallback("MD5", "auth-int"); 393 testAuthenticateCallback("MD5", "auth-int");
394 testStaleNonce(); 394 testStaleNonce();
395 testNextNonce(); 395 testNextNonce();
396 // These teste are not normally run. They can be used for locally 396 // These teste are not normally run. They can be used for locally
397 // testing with another web server (e.g. Apache). 397 // testing with another web server (e.g. Apache).
398 //testLocalServerDigest(); 398 //testLocalServerDigest();
399 } 399 }
OLDNEW
« no previous file with comments | « tests/lib/crypto/sha256_test.dart ('k') | tests/standalone/io/http_auth_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698