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

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

Issue 52723007: Revert "Change dart:io Platform.script to return a Uri." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
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:crypto/crypto.dart";
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 import "package:path/path.dart"; 7 import "package:path/path.dart";
8 import "dart:async"; 8 import "dart:async";
9 import "dart:io"; 9 import "dart:io";
10 import 'dart:convert'; 10 import 'dart:convert';
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 server.shutdown(); 739 server.shutdown();
740 client.close(); 740 client.close();
741 } 741 }
742 }); 742 });
743 }); 743 });
744 } 744 }
745 }); 745 });
746 } 746 }
747 747
748 void InitializeSSL() { 748 void InitializeSSL() {
749 var testPkcertDatabase = Platform.script.resolve('pkcert').toFilePath(); 749 var testPkcertDatabase = join(dirname(Platform.script), 'pkcert');
750 SecureSocket.initialize(database: testPkcertDatabase, 750 SecureSocket.initialize(database: testPkcertDatabase,
751 password: 'dartdart'); 751 password: 'dartdart');
752 } 752 }
753 753
754 main() { 754 main() {
755 InitializeSSL(); 755 InitializeSSL();
756 testInvalidProxy(); 756 testInvalidProxy();
757 testDirectProxy(); 757 testDirectProxy();
758 testProxy(); 758 testProxy();
759 testProxyChain(); 759 testProxyChain();
760 testProxyFromEnviroment(); 760 testProxyFromEnviroment();
761 // The two invocations of uses the same global variable for state - 761 // The two invocations of uses the same global variable for state -
762 // run one after the other. 762 // run one after the other.
763 testProxyAuthenticate(false) 763 testProxyAuthenticate(false)
764 .then((_) => testProxyAuthenticate(true)); 764 .then((_) => testProxyAuthenticate(true));
765 // This test is not normally run. It can be used for locally testing 765 // This test is not normally run. It can be used for locally testing
766 // with a real proxy server (e.g. Apache). 766 // with a real proxy server (e.g. Apache).
767 //testRealProxy(); 767 //testRealProxy();
768 //testRealProxyAuth(); 768 //testRealProxyAuth();
769 } 769 }
OLDNEW
« no previous file with comments | « tests/standalone/io/http_cross_process_test.dart ('k') | tests/standalone/io/http_server_close_response_after_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698