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

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

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
« no previous file with comments | « net/cert/mock_cert_verifier.h ('k') | net/cert/multi_threaded_cert_verifier.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "net/base/mock_cert_verifier.h" 5 #include "net/cert/mock_cert_verifier.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "net/base/cert_status_flags.h"
10 #include "net/base/cert_verify_result.h"
11 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
12 #include "net/base/x509_certificate.h" 10 #include "net/cert/cert_status_flags.h"
11 #include "net/cert/cert_verify_result.h"
12 #include "net/cert/x509_certificate.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 struct MockCertVerifier::Rule { 16 struct MockCertVerifier::Rule {
17 Rule(X509Certificate* cert, 17 Rule(X509Certificate* cert,
18 const std::string& hostname, 18 const std::string& hostname,
19 const CertVerifyResult& result, 19 const CertVerifyResult& result,
20 int rv) 20 int rv)
21 : cert(cert), 21 : cert(cert),
22 hostname(hostname), 22 hostname(hostname),
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void MockCertVerifier::AddResultForCertAndHost( 74 void MockCertVerifier::AddResultForCertAndHost(
75 X509Certificate* cert, 75 X509Certificate* cert,
76 const std::string& host_pattern, 76 const std::string& host_pattern,
77 const CertVerifyResult& verify_result, 77 const CertVerifyResult& verify_result,
78 int rv) { 78 int rv) {
79 Rule rule(cert, host_pattern, verify_result, rv); 79 Rule rule(cert, host_pattern, verify_result, rv);
80 rules_.push_back(rule); 80 rules_.push_back(rule);
81 } 81 }
82 82
83 } // namespace net 83 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/mock_cert_verifier.h ('k') | net/cert/multi_threaded_cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698