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/filter_policy.h" | 10 #include "chrome/common/filter_policy.h" |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 int mixed_content_state; | 824 int mixed_content_state; |
825 EXPECT_TRUE(tab->GetSecurityState(&security_style, &cert_status, | 825 EXPECT_TRUE(tab->GetSecurityState(&security_style, &cert_status, |
826 &mixed_content_state)); | 826 &mixed_content_state)); |
827 EXPECT_EQ(SECURITY_STYLE_UNAUTHENTICATED, security_style); | 827 EXPECT_EQ(SECURITY_STYLE_UNAUTHENTICATED, security_style); |
828 EXPECT_EQ(0, cert_status & net::CERT_STATUS_ALL_ERRORS); | 828 EXPECT_EQ(0, cert_status & net::CERT_STATUS_ALL_ERRORS); |
829 EXPECT_EQ(NavigationEntry::SSLStatus::NORMAL_CONTENT, mixed_content_state); | 829 EXPECT_EQ(NavigationEntry::SSLStatus::NORMAL_CONTENT, mixed_content_state); |
830 } | 830 } |
831 | 831 |
832 // Visits a page to which we could not connect (bad port) over http and https | 832 // Visits a page to which we could not connect (bad port) over http and https |
833 // and make sure the security style is correct. | 833 // and make sure the security style is correct. |
834 TEST_F(SSLUITest, TestConnectToBadPort) { | 834 // TODO(jcampan): disabled because flacky (see http://crbugs.com/6584). |
| 835 TEST_F(SSLUITest, DISABLED_TestConnectToBadPort) { |
835 scoped_refptr<TabProxy> tab(GetActiveTabProxy()); | 836 scoped_refptr<TabProxy> tab(GetActiveTabProxy()); |
836 | 837 |
837 GURL http_url("http://localhost:17"); | 838 GURL http_url("http://localhost:17"); |
838 NavigateTab(tab.get(), http_url); | 839 NavigateTab(tab.get(), http_url); |
839 | 840 |
840 SecurityStyle security_style; | 841 SecurityStyle security_style; |
841 int cert_status; | 842 int cert_status; |
842 int mixed_content_state; | 843 int mixed_content_state; |
843 EXPECT_TRUE(tab->GetSecurityState(&security_style, &cert_status, | 844 EXPECT_TRUE(tab->GetSecurityState(&security_style, &cert_status, |
844 &mixed_content_state)); | 845 &mixed_content_state)); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 | 1078 |
1078 // Visit a page over https that contains a frame with a redirect. | 1079 // Visit a page over https that contains a frame with a redirect. |
1079 | 1080 |
1080 // XMLHttpRequest mixed in synchronous mode. | 1081 // XMLHttpRequest mixed in synchronous mode. |
1081 | 1082 |
1082 // XMLHttpRequest mixed in asynchronous mode. | 1083 // XMLHttpRequest mixed in asynchronous mode. |
1083 | 1084 |
1084 // XMLHttpRequest over bad ssl in synchronous mode. | 1085 // XMLHttpRequest over bad ssl in synchronous mode. |
1085 | 1086 |
1086 // XMLHttpRequest over OK ssl in synchronous mode. | 1087 // XMLHttpRequest over OK ssl in synchronous mode. |
OLD | NEW |