| 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 SSLUITestIgnoreLocalhostCertErrors() : SSLUITest() {} | 761 SSLUITestIgnoreLocalhostCertErrors() : SSLUITest() {} |
| 762 | 762 |
| 763 void SetUpCommandLine(base::CommandLine* command_line) override { | 763 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 764 // Browser will ignore certificate errors on localhost. | 764 // Browser will ignore certificate errors on localhost. |
| 765 command_line->AppendSwitch(switches::kAllowInsecureLocalhost); | 765 command_line->AppendSwitch(switches::kAllowInsecureLocalhost); |
| 766 } | 766 } |
| 767 }; | 767 }; |
| 768 | 768 |
| 769 class SSLUITestWithExtendedReporting : public SSLUITest { | 769 class SSLUITestWithExtendedReporting : public SSLUITest { |
| 770 public: | 770 public: |
| 771 SSLUITestWithExtendedReporting() : SSLUITest() {} | 771 SSLUITestWithExtendedReporting() : SSLUITest() { |
| 772 // Certificate reports are only sent from official builds, unless this has |
| 773 // been called. |
| 774 CertReportHelper::SetFakeOfficialBuildForTesting(); |
| 775 } |
| 772 }; | 776 }; |
| 773 | 777 |
| 774 // Visits a regular page over http. | 778 // Visits a regular page over http. |
| 775 IN_PROC_BROWSER_TEST_F(SSLUITest, TestHTTP) { | 779 IN_PROC_BROWSER_TEST_F(SSLUITest, TestHTTP) { |
| 776 ASSERT_TRUE(embedded_test_server()->Start()); | 780 ASSERT_TRUE(embedded_test_server()->Start()); |
| 777 | 781 |
| 778 ui_test_utils::NavigateToURL( | 782 ui_test_utils::NavigateToURL( |
| 779 browser(), embedded_test_server()->GetURL("/ssl/google.html")); | 783 browser(), embedded_test_server()->GetURL("/ssl/google.html")); |
| 780 | 784 |
| 781 CheckUnauthenticatedState( | 785 CheckUnauthenticatedState( |
| (...skipping 3819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4601 | 4605 |
| 4602 // Visit a page over https that contains a frame with a redirect. | 4606 // Visit a page over https that contains a frame with a redirect. |
| 4603 | 4607 |
| 4604 // XMLHttpRequest insecure content in synchronous mode. | 4608 // XMLHttpRequest insecure content in synchronous mode. |
| 4605 | 4609 |
| 4606 // XMLHttpRequest insecure content in asynchronous mode. | 4610 // XMLHttpRequest insecure content in asynchronous mode. |
| 4607 | 4611 |
| 4608 // XMLHttpRequest over bad ssl in synchronous mode. | 4612 // XMLHttpRequest over bad ssl in synchronous mode. |
| 4609 | 4613 |
| 4610 // XMLHttpRequest over OK ssl in synchronous mode. | 4614 // XMLHttpRequest over OK ssl in synchronous mode. |
| OLD | NEW |