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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/test_root_certs.h" 5 #include "net/cert/test_root_certs.h"
6 6
7 #include <openssl/err.h> 7 #include <openssl/err.h>
8 #include <openssl/x509v3.h> 8 #include <openssl/x509v3.h>
9 9
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 27 matching lines...) Expand all
38 X509Certificate::ResetCertStore(); 38 X509Certificate::ResetCertStore();
39 } 39 }
40 40
41 bool TestRootCerts::IsEmpty() const { 41 bool TestRootCerts::IsEmpty() const {
42 return temporary_roots_.empty(); 42 return temporary_roots_.empty();
43 } 43 }
44 44
45 bool TestRootCerts::Contains(X509* cert) const { 45 bool TestRootCerts::Contains(X509* cert) const {
46 for (std::vector<scoped_refptr<X509Certificate> >::const_iterator it = 46 for (std::vector<scoped_refptr<X509Certificate> >::const_iterator it =
47 temporary_roots_.begin(); 47 temporary_roots_.begin();
48 it != temporary_roots_.end(); ++it) { 48 it != temporary_roots_.end();
49 ++it) {
49 if (X509Certificate::IsSameOSCert(cert, (*it)->os_cert_handle())) 50 if (X509Certificate::IsSameOSCert(cert, (*it)->os_cert_handle()))
50 return true; 51 return true;
51 } 52 }
52 return false; 53 return false;
53 } 54 }
54 55
55 TestRootCerts::~TestRootCerts() {} 56 TestRootCerts::~TestRootCerts() {
57 }
56 58
57 void TestRootCerts::Init() {} 59 void TestRootCerts::Init() {
60 }
58 61
59 } // namespace net 62 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698