| Index: net/base/x509_certificate_unittest.cc
|
| ===================================================================
|
| --- net/base/x509_certificate_unittest.cc (revision 81350)
|
| +++ net/base/x509_certificate_unittest.cc (working copy)
|
| @@ -2,13 +2,13 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/crypto/rsa_private_key.h"
|
| #include "base/file_path.h"
|
| #include "base/file_util.h"
|
| #include "base/path_service.h"
|
| #include "base/pickle.h"
|
| #include "base/sha1.h"
|
| #include "base/string_split.h"
|
| +#include "crypto/rsa_private_key.h"
|
| #include "net/base/asn1_util.h"
|
| #include "net/base/cert_status_flags.h"
|
| #include "net/base/cert_test_util.h"
|
| @@ -830,8 +830,8 @@
|
| // This test creates a self-signed cert from a private key and then verify the
|
| // content of the certificate.
|
| TEST(X509CertificateTest, CreateSelfSigned) {
|
| - scoped_ptr<base::RSAPrivateKey> private_key(
|
| - base::RSAPrivateKey::Create(1024));
|
| + scoped_ptr<crypto::RSAPrivateKey> private_key(
|
| + crypto::RSAPrivateKey::Create(1024));
|
| scoped_refptr<X509Certificate> cert =
|
| X509Certificate::CreateSelfSigned(
|
| private_key.get(), "CN=subject", 1, base::TimeDelta::FromDays(1));
|
| @@ -926,7 +926,7 @@
|
| input.resize(sizeof(private_key_info));
|
| memcpy(&input.front(), private_key_info, sizeof(private_key_info));
|
|
|
| - private_key.reset(base::RSAPrivateKey::CreateFromPrivateKeyInfo(input));
|
| + private_key.reset(crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(input));
|
| ASSERT_TRUE(private_key.get());
|
|
|
| cert = X509Certificate::CreateSelfSigned(
|
| @@ -937,8 +937,8 @@
|
| }
|
|
|
| TEST(X509CertificateTest, GetDEREncoded) {
|
| - scoped_ptr<base::RSAPrivateKey> private_key(
|
| - base::RSAPrivateKey::Create(1024));
|
| + scoped_ptr<crypto::RSAPrivateKey> private_key(
|
| + crypto::RSAPrivateKey::Create(1024));
|
| scoped_refptr<X509Certificate> cert =
|
| X509Certificate::CreateSelfSigned(
|
| private_key.get(), "CN=subject", 0, base::TimeDelta::FromDays(1));
|
|
|