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

Side by Side Diff: net/cert/ct_objects_extractor_unittest.cc

Issue 2090463002: Move net/base/test_data_directory.[cc,h] to net/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "net/cert/ct_objects_extractor.h" 5 #include "net/cert/ct_objects_extractor.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "net/base/test_data_directory.h"
9 #include "net/cert/ct_log_verifier.h" 8 #include "net/cert/ct_log_verifier.h"
10 #include "net/cert/ct_serialization.h" 9 #include "net/cert/ct_serialization.h"
11 #include "net/cert/signed_certificate_timestamp.h" 10 #include "net/cert/signed_certificate_timestamp.h"
12 #include "net/cert/x509_certificate.h" 11 #include "net/cert/x509_certificate.h"
13 #include "net/test/cert_test_util.h" 12 #include "net/test/cert_test_util.h"
14 #include "net/test/ct_test_util.h" 13 #include "net/test/ct_test_util.h"
14 #include "net/test/test_data_directory.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 namespace ct { 19 namespace ct {
20 20
21 class CTObjectsExtractorTest : public ::testing::Test { 21 class CTObjectsExtractorTest : public ::testing::Test {
22 public: 22 public:
23 void SetUp() override { 23 void SetUp() override {
24 precert_chain_ = 24 precert_chain_ =
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 std::string extracted_sct_list; 173 std::string extracted_sct_list;
174 // Use test_cert_ for issuer - it is not the correct issuer of |subject_cert|. 174 // Use test_cert_ for issuer - it is not the correct issuer of |subject_cert|.
175 EXPECT_FALSE(ct::ExtractSCTListFromOCSPResponse( 175 EXPECT_FALSE(ct::ExtractSCTListFromOCSPResponse(
176 test_cert_->os_cert_handle(), subject_cert->serial_number(), 176 test_cert_->os_cert_handle(), subject_cert->serial_number(),
177 ocsp_response, &extracted_sct_list)); 177 ocsp_response, &extracted_sct_list));
178 } 178 }
179 179
180 } // namespace ct 180 } // namespace ct
181 181
182 } // namespace net 182 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/cert_verify_proc_whitelist_unittest.cc ('k') | net/cert/ct_policy_enforcer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698