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 "net/cert/test_root_certs.h" | 5 #include "net/cert/test_root_certs.h" |
6 | 6 |
7 #include <windows.h> | |
8 #include <wincrypt.h> | |
9 | |
10 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
11 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 9 #include "base/logging.h" |
13 #include "base/win/win_util.h" | 10 #include "base/win/win_util.h" |
14 #include "base/win/windows_version.h" | 11 #include "base/win/windows_version.h" |
15 #include "net/cert/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
16 | 13 |
17 namespace net { | 14 namespace net { |
18 | 15 |
19 namespace { | 16 namespace { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 203 |
207 void TestRootCerts::Init() { | 204 void TestRootCerts::Init() { |
208 empty_ = true; | 205 empty_ = true; |
209 temporary_roots_ = CertOpenStore( | 206 temporary_roots_ = CertOpenStore( |
210 CERT_STORE_PROV_MEMORY, 0, NULL, | 207 CERT_STORE_PROV_MEMORY, 0, NULL, |
211 CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG, NULL); | 208 CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG, NULL); |
212 DCHECK(temporary_roots_); | 209 DCHECK(temporary_roots_); |
213 } | 210 } |
214 | 211 |
215 } // namespace net | 212 } // namespace net |
OLD | NEW |