| Index: crypto/signature_creator_unittest.cc
|
| ===================================================================
|
| --- crypto/signature_creator_unittest.cc (revision 79901)
|
| +++ crypto/signature_creator_unittest.cc (working copy)
|
| @@ -4,25 +4,25 @@
|
|
|
| #include <vector>
|
|
|
| -#include "base/crypto/signature_creator.h"
|
| -#include "base/crypto/signature_verifier.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "crypto/signature_creator.h"
|
| +#include "crypto/signature_verifier.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| TEST(SignatureCreatorTest, BasicTest) {
|
| // Do a verify round trip.
|
| - scoped_ptr<base::RSAPrivateKey> key_original(
|
| - base::RSAPrivateKey::Create(1024));
|
| + scoped_ptr<crypto::RSAPrivateKey> key_original(
|
| + crypto::RSAPrivateKey::Create(1024));
|
| ASSERT_TRUE(key_original.get());
|
|
|
| std::vector<uint8> key_info;
|
| key_original->ExportPrivateKey(&key_info);
|
| - scoped_ptr<base::RSAPrivateKey> key(
|
| - base::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info));
|
| + scoped_ptr<crypto::RSAPrivateKey> key(
|
| + crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info));
|
| ASSERT_TRUE(key.get());
|
|
|
| - scoped_ptr<base::SignatureCreator> signer(
|
| - base::SignatureCreator::Create(key.get()));
|
| + scoped_ptr<crypto::SignatureCreator> signer(
|
| + crypto::SignatureCreator::Create(key.get()));
|
| ASSERT_TRUE(signer.get());
|
|
|
| std::string data("Hello, World!");
|
| @@ -41,7 +41,7 @@
|
| 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
|
| 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00
|
| };
|
| - base::SignatureVerifier verifier;
|
| + crypto::SignatureVerifier verifier;
|
| ASSERT_TRUE(verifier.VerifyInit(
|
| kSHA1WithRSAAlgorithmID, sizeof(kSHA1WithRSAAlgorithmID),
|
| &signature.front(), signature.size(),
|
|
|