| Index: crypto/secure_hash_unittest.cc
|
| ===================================================================
|
| --- crypto/secure_hash_unittest.cc (revision 79901)
|
| +++ crypto/secure_hash_unittest.cc (working copy)
|
| @@ -2,11 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/crypto/secure_hash.h"
|
| +#include "crypto/secure_hash.h"
|
|
|
| #include "base/basictypes.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "base/sha2.h"
|
| +#include "crypto/sha2.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| TEST(SecureHashTest, TestUpdate) {
|
| @@ -21,14 +21,14 @@
|
| 0x04, 0x6d, 0x39, 0xcc,
|
| 0xc7, 0x11, 0x2c, 0xd0 };
|
|
|
| - uint8 output3[base::SHA256_LENGTH];
|
| + uint8 output3[crypto::SHA256_LENGTH];
|
|
|
| - scoped_ptr<base::SecureHash> ctx(base::SecureHash::Create(
|
| - base::SecureHash::SHA256));
|
| + scoped_ptr<crypto::SecureHash> ctx(crypto::SecureHash::Create(
|
| + crypto::SecureHash::SHA256));
|
| ctx->Update(input3.data(), input3.size());
|
| ctx->Update(input3.data(), input3.size());
|
|
|
| ctx->Finish(output3, sizeof(output3));
|
| - for (size_t i = 0; i < base::SHA256_LENGTH; i++)
|
| + for (size_t i = 0; i < crypto::SHA256_LENGTH; i++)
|
| EXPECT_EQ(expected3[i], static_cast<int>(output3[i]));
|
| }
|
|
|