OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/time.h" | 5 #include "base/time.h" |
6 #include "chrome/browser/browser.h" | 6 #include "chrome/browser/browser.h" |
7 #include "chrome/browser/pref_service.h" | 7 #include "chrome/browser/pref_service.h" |
8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
9 #include "chrome/browser/tab_contents/interstitial_page.h" | 9 #include "chrome/browser/tab_contents/interstitial_page.h" |
10 #include "chrome/browser/tab_contents/navigation_entry.h" | 10 #include "chrome/browser/tab_contents/navigation_entry.h" |
11 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
13 #include "chrome/test/in_process_browser_test.h" | 13 #include "chrome/test/in_process_browser_test.h" |
14 #include "chrome/test/ui_test_utils.h" | 14 #include "chrome/test/ui_test_utils.h" |
15 | 15 |
16 const wchar_t kDocRoot[] = L"chrome/test/data"; | 16 const wchar_t kDocRoot[] = L"chrome/test/data"; |
17 | 17 |
18 class SSLUITest : public InProcessBrowserTest { | 18 class SSLUITest : public InProcessBrowserTest { |
19 public: | 19 public: |
20 SSLUITest() { | 20 SSLUITest() { |
21 EnableDOMAutomation(); | 21 EnableDOMAutomation(); |
22 } | 22 } |
23 | 23 |
24 scoped_refptr<HTTPTestServer> PlainServer() { | 24 scoped_refptr<HTTPTestServer> PlainServer() { |
25 return HTTPTestServer::CreateServer(kDocRoot, NULL); | 25 return HTTPTestServer::CreateServer(kDocRoot); |
26 } | 26 } |
27 | 27 |
28 scoped_refptr<HTTPSTestServer> GoodCertServer() { | 28 scoped_refptr<HTTPSTestServer> GoodCertServer() { |
29 return HTTPSTestServer::CreateGoodServer(kDocRoot); | 29 return HTTPSTestServer::CreateGoodServer(kDocRoot); |
30 } | 30 } |
31 | 31 |
32 scoped_refptr<HTTPSTestServer> BadCertServer() { | 32 scoped_refptr<HTTPSTestServer> BadCertServer() { |
33 return HTTPSTestServer::CreateExpiredServer(kDocRoot); | 33 return HTTPSTestServer::CreateExpiredServer(kDocRoot); |
34 } | 34 } |
35 | 35 |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1033 | 1033 |
1034 // Visit a page over https that contains a frame with a redirect. | 1034 // Visit a page over https that contains a frame with a redirect. |
1035 | 1035 |
1036 // XMLHttpRequest insecure content in synchronous mode. | 1036 // XMLHttpRequest insecure content in synchronous mode. |
1037 | 1037 |
1038 // XMLHttpRequest insecure content in asynchronous mode. | 1038 // XMLHttpRequest insecure content in asynchronous mode. |
1039 | 1039 |
1040 // XMLHttpRequest over bad ssl in synchronous mode. | 1040 // XMLHttpRequest over bad ssl in synchronous mode. |
1041 | 1041 |
1042 // XMLHttpRequest over OK ssl in synchronous mode. | 1042 // XMLHttpRequest over OK ssl in synchronous mode. |
OLD | NEW |