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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 #endif | 10 #endif |
(...skipping 7281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7292 ev_test_policy_( | 7292 ev_test_policy_( |
7293 new ScopedTestEVPolicy(EVRootCAMetadata::GetInstance(), | 7293 new ScopedTestEVPolicy(EVRootCAMetadata::GetInstance(), |
7294 kOCSPTestCertFingerprint, | 7294 kOCSPTestCertFingerprint, |
7295 kOCSPTestCertPolicy)) { | 7295 kOCSPTestCertPolicy)) { |
7296 } | 7296 } |
7297 | 7297 |
7298 virtual void SetUp() OVERRIDE { | 7298 virtual void SetUp() OVERRIDE { |
7299 SetupContext(&context_); | 7299 SetupContext(&context_); |
7300 context_.Init(); | 7300 context_.Init(); |
7301 | 7301 |
| 7302 SSLConfigService::SetEVCertsWhitelist( |
| 7303 ct::internal::GetEmptyEVCertsWhitelist()); |
| 7304 |
7302 scoped_refptr<X509Certificate> root_cert = | 7305 scoped_refptr<X509Certificate> root_cert = |
7303 ImportCertFromFile(GetTestCertsDirectory(), "ocsp-test-root.pem"); | 7306 ImportCertFromFile(GetTestCertsDirectory(), "ocsp-test-root.pem"); |
7304 CHECK_NE(static_cast<X509Certificate*>(NULL), root_cert.get()); | 7307 CHECK_NE(static_cast<X509Certificate*>(NULL), root_cert.get()); |
7305 test_root_.reset(new ScopedTestRoot(root_cert.get())); | 7308 test_root_.reset(new ScopedTestRoot(root_cert.get())); |
7306 | 7309 |
7307 #if defined(USE_NSS) || defined(OS_IOS) | 7310 #if defined(USE_NSS) || defined(OS_IOS) |
7308 SetURLRequestContextForNSSHttpIO(&context_); | 7311 SetURLRequestContextForNSSHttpIO(&context_); |
7309 EnsureNSSHttpIOInit(); | 7312 EnsureNSSHttpIOInit(); |
7310 #endif | 7313 #endif |
7311 } | 7314 } |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8095 | 8098 |
8096 EXPECT_FALSE(r->is_pending()); | 8099 EXPECT_FALSE(r->is_pending()); |
8097 EXPECT_EQ(1, d->response_started_count()); | 8100 EXPECT_EQ(1, d->response_started_count()); |
8098 EXPECT_FALSE(d->received_data_before_response()); | 8101 EXPECT_FALSE(d->received_data_before_response()); |
8099 EXPECT_EQ(d->bytes_received(), static_cast<int>(file_size)); | 8102 EXPECT_EQ(d->bytes_received(), static_cast<int>(file_size)); |
8100 } | 8103 } |
8101 } | 8104 } |
8102 #endif // !defined(DISABLE_FTP_SUPPORT) | 8105 #endif // !defined(DISABLE_FTP_SUPPORT) |
8103 | 8106 |
8104 } // namespace net | 8107 } // namespace net |
OLD | NEW |