| 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:expect/expect.dart"; | 5 import "package:expect/expect.dart"; | 
| 6 import 'dart:async'; | 6 import 'dart:async'; | 
| 7 import 'dart:crypto'; | 7 import 'dart:crypto'; | 
| 8 import 'dart:io'; | 8 import 'dart:io'; | 
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; | 
| 10 import 'dart:uri'; |  | 
| 11 import 'dart:utf'; | 10 import 'dart:utf'; | 
| 12 | 11 | 
| 13 class Server { | 12 class Server { | 
| 14   HttpServer server; | 13   HttpServer server; | 
| 15   bool passwordChanged = false; | 14   bool passwordChanged = false; | 
| 16 | 15 | 
| 17   Future<Server> start() { | 16   Future<Server> start() { | 
| 18     var completer = new Completer(); | 17     var completer = new Completer(); | 
| 19     HttpServer.bind("127.0.0.1", 0).then((s) { | 18     HttpServer.bind("127.0.0.1", 0).then((s) { | 
| 20       server = s; | 19       server = s; | 
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 260 main() { | 259 main() { | 
| 261   testUrlUserInfo(); | 260   testUrlUserInfo(); | 
| 262   testBasicNoCredentials(); | 261   testBasicNoCredentials(); | 
| 263   testBasicCredentials(); | 262   testBasicCredentials(); | 
| 264   testBasicAuthenticateCallback(); | 263   testBasicAuthenticateCallback(); | 
| 265   // 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 | 
| 266   // testing with another web server (e.g. Apache). | 265   // testing with another web server (e.g. Apache). | 
| 267   //testLocalServerBasic(); | 266   //testLocalServerBasic(); | 
| 268   //testLocalServerDigest(); | 267   //testLocalServerDigest(); | 
| 269 } | 268 } | 
| OLD | NEW | 
|---|