| OLD | NEW |
| 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 "chromeos/network/onc/onc_certificate_importer_impl.h" | 5 #include "chromeos/network/onc/onc_certificate_importer_impl.h" |
| 6 | 6 |
| 7 #include <cert.h> | 7 #include <cert.h> |
| 8 #include <certdb.h> | 8 #include <certdb.h> |
| 9 #include <keyhi.h> | 9 #include <keyhi.h> |
| 10 #include <pk11pub.h> | 10 #include <pk11pub.h> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "chromeos/network/onc/onc_test_utils.h" | 17 #include "chromeos/network/onc/onc_test_utils.h" |
| 18 #include "components/onc/onc_constants.h" | 18 #include "components/onc/onc_constants.h" |
| 19 #include "crypto/nss_util.h" | |
| 20 #include "crypto/nss_util_internal.h" | 19 #include "crypto/nss_util_internal.h" |
| 20 #include "crypto/scoped_test_nss_chromeos_user.h" |
| 21 #include "net/base/crypto_module.h" | 21 #include "net/base/crypto_module.h" |
| 22 #include "net/cert/cert_type.h" | 22 #include "net/cert/cert_type.h" |
| 23 #include "net/cert/nss_cert_database_chromeos.h" | 23 #include "net/cert/nss_cert_database_chromeos.h" |
| 24 #include "net/cert/x509_certificate.h" | 24 #include "net/cert/x509_certificate.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 | 26 |
| 27 namespace chromeos { | 27 namespace chromeos { |
| 28 namespace onc { | 28 namespace onc { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 "certificate-client-update.onc"), | 331 "certificate-client-update.onc"), |
| 332 CertParam(net::SERVER_CERT, | 332 CertParam(net::SERVER_CERT, |
| 333 "certificate-server.onc", | 333 "certificate-server.onc", |
| 334 "certificate-server-update.onc"), | 334 "certificate-server-update.onc"), |
| 335 CertParam(net::CA_CERT, | 335 CertParam(net::CA_CERT, |
| 336 "certificate-web-authority.onc", | 336 "certificate-web-authority.onc", |
| 337 "certificate-web-authority-update.onc"))); | 337 "certificate-web-authority-update.onc"))); |
| 338 | 338 |
| 339 } // namespace onc | 339 } // namespace onc |
| 340 } // namespace chromeos | 340 } // namespace chromeos |
| OLD | NEW |