OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 71 } |
72 | 72 |
73 private: | 73 private: |
74 bool waiting_; | 74 bool waiting_; |
75 bool seen_; | 75 bool seen_; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace | 78 } // namespace |
79 | 79 |
80 class SSLUITest : public InProcessBrowserTest { | 80 class SSLUITest : public InProcessBrowserTest { |
81 typedef net::TestServer::HTTPSOptions HTTPSOptions; | 81 typedef net::TestServer::SSLOptions SSLOptions; |
82 | 82 |
83 public: | 83 public: |
84 SSLUITest() | 84 SSLUITest() |
85 : https_server_( | 85 : https_server_(net::TestServer::TYPE_HTTPS, |
86 HTTPSOptions(HTTPSOptions::CERT_OK), FilePath(kDocRoot)), | 86 SSLOptions(SSLOptions::CERT_OK), |
87 https_server_expired_( | 87 FilePath(kDocRoot)), |
88 HTTPSOptions(HTTPSOptions::CERT_EXPIRED), FilePath(kDocRoot)), | 88 https_server_expired_(net::TestServer::TYPE_HTTPS, |
89 https_server_mismatched_( | 89 SSLOptions(SSLOptions::CERT_EXPIRED), |
90 HTTPSOptions(HTTPSOptions::CERT_MISMATCHED_NAME), | 90 FilePath(kDocRoot)), |
91 FilePath(kDocRoot)) {} | 91 https_server_mismatched_(net::TestServer::TYPE_HTTPS, |
| 92 SSLOptions(SSLOptions::CERT_MISMATCHED_NAME), |
| 93 FilePath(kDocRoot)) {} |
92 | 94 |
93 virtual void SetUpCommandLine(CommandLine* command_line) { | 95 virtual void SetUpCommandLine(CommandLine* command_line) { |
94 // Browser will both run and display insecure content. | 96 // Browser will both run and display insecure content. |
95 command_line->AppendSwitch(switches::kAllowRunningInsecureContent); | 97 command_line->AppendSwitch(switches::kAllowRunningInsecureContent); |
96 // Use process-per-site so that navigating to a same-site page in a | 98 // Use process-per-site so that navigating to a same-site page in a |
97 // new tab will use the same process. | 99 // new tab will use the same process. |
98 command_line->AppendSwitch(switches::kProcessPerSite); | 100 command_line->AppendSwitch(switches::kProcessPerSite); |
99 } | 101 } |
100 | 102 |
101 void CheckAuthenticatedState(WebContents* tab, | 103 void CheckAuthenticatedState(WebContents* tab, |
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 | 1498 |
1497 // Visit a page over https that contains a frame with a redirect. | 1499 // Visit a page over https that contains a frame with a redirect. |
1498 | 1500 |
1499 // XMLHttpRequest insecure content in synchronous mode. | 1501 // XMLHttpRequest insecure content in synchronous mode. |
1500 | 1502 |
1501 // XMLHttpRequest insecure content in asynchronous mode. | 1503 // XMLHttpRequest insecure content in asynchronous mode. |
1502 | 1504 |
1503 // XMLHttpRequest over bad ssl in synchronous mode. | 1505 // XMLHttpRequest over bad ssl in synchronous mode. |
1504 | 1506 |
1505 // XMLHttpRequest over OK ssl in synchronous mode. | 1507 // XMLHttpRequest over OK ssl in synchronous mode. |
OLD | NEW |