OLD | NEW |
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 bool passwordChanged = false; | 14 bool passwordChanged = false; |
15 | 15 |
16 Future<Server> start() { | 16 Future<Server> start() { |
17 var completer = new Completer(); | 17 var completer = new Completer(); |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 main() { | 259 main() { |
260 testUrlUserInfo(); | 260 testUrlUserInfo(); |
261 testBasicNoCredentials(); | 261 testBasicNoCredentials(); |
262 testBasicCredentials(); | 262 testBasicCredentials(); |
263 testBasicAuthenticateCallback(); | 263 testBasicAuthenticateCallback(); |
264 // These teste are not normally run. They can be used for locally | 264 // These teste are not normally run. They can be used for locally |
265 // testing with another web server (e.g. Apache). | 265 // testing with another web server (e.g. Apache). |
266 //testLocalServerBasic(); | 266 //testLocalServerBasic(); |
267 //testLocalServerDigest(); | 267 //testLocalServerDigest(); |
268 } | 268 } |
OLD | NEW |