Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: net/url_request/url_request_unittest.cc

Issue 418173004: Enable and fix CRLSet and remoting tests on non-Android OpenSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also build crl_set.cc on NaCl Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7698 matching lines...) Expand 10 before | Expand all | Expand 10 after
7709 DoConnection(ssl_options, &cert_status); 7709 DoConnection(ssl_options, &cert_status);
7710 7710
7711 // If we're not trying EV verification then, even if the CRLSet has expired, 7711 // If we're not trying EV verification then, even if the CRLSet has expired,
7712 // we don't fall back to online revocation checks. 7712 // we don't fall back to online revocation checks.
7713 EXPECT_EQ(0u, cert_status & CERT_STATUS_ALL_ERRORS); 7713 EXPECT_EQ(0u, cert_status & CERT_STATUS_ALL_ERRORS);
7714 EXPECT_FALSE(cert_status & CERT_STATUS_IS_EV); 7714 EXPECT_FALSE(cert_status & CERT_STATUS_IS_EV);
7715 EXPECT_FALSE(cert_status & CERT_STATUS_REV_CHECKING_ENABLED); 7715 EXPECT_FALSE(cert_status & CERT_STATUS_REV_CHECKING_ENABLED);
7716 } 7716 }
7717 7717
7718 TEST_F(HTTPSCRLSetTest, CRLSetRevoked) { 7718 TEST_F(HTTPSCRLSetTest, CRLSetRevoked) {
7719 #if defined(USE_OPENSSL) 7719 #if defined(OS_ANDROID)
7720 LOG(WARNING) << "Skipping test because system doesn't support CRLSets"; 7720 LOG(WARNING) << "Skipping test because system doesn't support CRLSets";
7721 return; 7721 return;
7722 #endif 7722 #endif
7723 7723
7724 SpawnedTestServer::SSLOptions ssl_options( 7724 SpawnedTestServer::SSLOptions ssl_options(
7725 SpawnedTestServer::SSLOptions::CERT_AUTO); 7725 SpawnedTestServer::SSLOptions::CERT_AUTO);
7726 ssl_options.ocsp_status = SpawnedTestServer::SSLOptions::OCSP_OK; 7726 ssl_options.ocsp_status = SpawnedTestServer::SSLOptions::OCSP_OK;
7727 ssl_options.cert_serial = 10; 7727 ssl_options.cert_serial = 10;
7728 SSLConfigService::SetCRLSet( 7728 SSLConfigService::SetCRLSet(
7729 scoped_refptr<CRLSet>(CRLSet::ForTesting( 7729 scoped_refptr<CRLSet>(CRLSet::ForTesting(
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
8099 8099
8100 EXPECT_FALSE(r.is_pending()); 8100 EXPECT_FALSE(r.is_pending());
8101 EXPECT_EQ(1, d->response_started_count()); 8101 EXPECT_EQ(1, d->response_started_count());
8102 EXPECT_FALSE(d->received_data_before_response()); 8102 EXPECT_FALSE(d->received_data_before_response());
8103 EXPECT_EQ(d->bytes_received(), static_cast<int>(file_size)); 8103 EXPECT_EQ(d->bytes_received(), static_cast<int>(file_size));
8104 } 8104 }
8105 } 8105 }
8106 #endif // !defined(DISABLE_FTP_SUPPORT) 8106 #endif // !defined(DISABLE_FTP_SUPPORT)
8107 8107
8108 } // namespace net 8108 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_openssl.cc ('k') | remoting/protocol/negotiating_authenticator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698