OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <Windows.h> | 5 #include <Windows.h> |
6 #include <Wincrypt.h> | 6 #include <Wincrypt.h> |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 const wchar_t kCertIssuerName[] = L"Test CA"; | 25 const wchar_t kCertIssuerName[] = L"Test CA"; |
26 | 26 |
27 class SSLUITest : public UITest { | 27 class SSLUITest : public UITest { |
28 protected: | 28 protected: |
29 SSLUITest() { | 29 SSLUITest() { |
30 CheckCATrusted(); | 30 CheckCATrusted(); |
31 dom_automation_enabled_ = true; | 31 dom_automation_enabled_ = true; |
32 PathService::Get(base::DIR_SOURCE_ROOT, &cert_dir_); | 32 PathService::Get(base::DIR_SOURCE_ROOT, &cert_dir_); |
33 cert_dir_ += L"/chrome/test/data/ssl/certificates/"; | 33 cert_dir_ += L"/chrome/test/data/ssl/certificates/"; |
34 std::replace(cert_dir_.begin(), cert_dir_.end(), | 34 std::replace(cert_dir_.begin(), cert_dir_.end(), |
35 L'/', file_util::kPathSeparator); | 35 L'/', FilePath::kSeparators[0]); |
36 } | 36 } |
37 | 37 |
38 TabProxy* GetActiveTabProxy() { | 38 TabProxy* GetActiveTabProxy() { |
39 scoped_ptr<BrowserProxy> browser_proxy(automation()->GetBrowserWindow(0)); | 39 scoped_ptr<BrowserProxy> browser_proxy(automation()->GetBrowserWindow(0)); |
40 EXPECT_TRUE(browser_proxy.get()); | 40 EXPECT_TRUE(browser_proxy.get()); |
41 return browser_proxy->GetActiveTab(); | 41 return browser_proxy->GetActiveTab(); |
42 } | 42 } |
43 | 43 |
44 void NavigateTab(TabProxy* tab_proxy, const GURL& url) { | 44 void NavigateTab(TabProxy* tab_proxy, const GURL& url) { |
45 ASSERT_TRUE(tab_proxy->NavigateToURL(url)); | 45 ASSERT_TRUE(tab_proxy->NavigateToURL(url)); |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 | 923 |
924 // Visit a page over https that contains a frame with a redirect. | 924 // Visit a page over https that contains a frame with a redirect. |
925 | 925 |
926 // XMLHttpRequest mixed in synchronous mode. | 926 // XMLHttpRequest mixed in synchronous mode. |
927 | 927 |
928 // XMLHttpRequest mixed in asynchronous mode. | 928 // XMLHttpRequest mixed in asynchronous mode. |
929 | 929 |
930 // XMLHttpRequest over bad ssl in synchronous mode. | 930 // XMLHttpRequest over bad ssl in synchronous mode. |
931 | 931 |
932 // XMLHttpRequest over OK ssl in synchronous mode. | 932 // XMLHttpRequest over OK ssl in synchronous mode. |
OLD | NEW |