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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 // as page title. | 731 // as page title. |
732 const base::string16 result = watcher.WaitAndGetTitle(); | 732 const base::string16 result = watcher.WaitAndGetTitle(); |
733 EXPECT_TRUE(LowerCaseEqualsASCII(result, "pass")); | 733 EXPECT_TRUE(LowerCaseEqualsASCII(result, "pass")); |
734 } | 734 } |
735 | 735 |
736 #if defined(USE_NSS) | 736 #if defined(USE_NSS) |
737 class SSLUITestWithClientCert : public SSLUITest { | 737 class SSLUITestWithClientCert : public SSLUITest { |
738 public: | 738 public: |
739 SSLUITestWithClientCert() : cert_db_(NULL) {} | 739 SSLUITestWithClientCert() : cert_db_(NULL) {} |
740 | 740 |
741 virtual void SetUpOnMainThread() override { | 741 void SetUpOnMainThread() override { |
742 SSLUITest::SetUpOnMainThread(); | 742 SSLUITest::SetUpOnMainThread(); |
743 | 743 |
744 base::RunLoop loop; | 744 base::RunLoop loop; |
745 GetNSSCertDatabaseForProfile( | 745 GetNSSCertDatabaseForProfile( |
746 browser()->profile(), | 746 browser()->profile(), |
747 base::Bind(&SSLUITestWithClientCert::DidGetCertDatabase, | 747 base::Bind(&SSLUITestWithClientCert::DidGetCertDatabase, |
748 base::Unretained(this), | 748 base::Unretained(this), |
749 &loop)); | 749 &loop)); |
750 loop.Run(); | 750 loop.Run(); |
751 } | 751 } |
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1880 | 1880 |
1881 // Visit a page over https that contains a frame with a redirect. | 1881 // Visit a page over https that contains a frame with a redirect. |
1882 | 1882 |
1883 // XMLHttpRequest insecure content in synchronous mode. | 1883 // XMLHttpRequest insecure content in synchronous mode. |
1884 | 1884 |
1885 // XMLHttpRequest insecure content in asynchronous mode. | 1885 // XMLHttpRequest insecure content in asynchronous mode. |
1886 | 1886 |
1887 // XMLHttpRequest over bad ssl in synchronous mode. | 1887 // XMLHttpRequest over bad ssl in synchronous mode. |
1888 | 1888 |
1889 // XMLHttpRequest over OK ssl in synchronous mode. | 1889 // XMLHttpRequest over OK ssl in synchronous mode. |
OLD | NEW |