| Index: components/webcrypto/test/hmac_unittest.cc
|
| diff --git a/content/child/webcrypto/test/hmac_unittest.cc b/components/webcrypto/test/hmac_unittest.cc
|
| similarity index 97%
|
| rename from content/child/webcrypto/test/hmac_unittest.cc
|
| rename to components/webcrypto/test/hmac_unittest.cc
|
| index 070171ed0a9fb644745f176820a6453692ec50b6..6c84f857c51d96baaaa297bab0a76a93d64ecd89 100644
|
| --- a/content/child/webcrypto/test/hmac_unittest.cc
|
| +++ b/components/webcrypto/test/hmac_unittest.cc
|
| @@ -4,17 +4,15 @@
|
|
|
| #include "base/logging.h"
|
| #include "base/stl_util.h"
|
| -#include "content/child/webcrypto/algorithm_dispatch.h"
|
| -#include "content/child/webcrypto/crypto_data.h"
|
| -#include "content/child/webcrypto/status.h"
|
| -#include "content/child/webcrypto/test/test_helpers.h"
|
| -#include "content/child/webcrypto/webcrypto_util.h"
|
| +#include "components/webcrypto/algorithm_dispatch.h"
|
| +#include "components/webcrypto/crypto_data.h"
|
| +#include "components/webcrypto/status.h"
|
| +#include "components/webcrypto/test/test_helpers.h"
|
| +#include "components/webcrypto/webcrypto_util.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
|
| #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
|
|
|
| -namespace content {
|
| -
|
| namespace webcrypto {
|
|
|
| namespace {
|
| @@ -211,13 +209,12 @@ TEST(WebCryptoHmacTest, Generate1BitKey) {
|
| TEST(WebCryptoHmacTest, ImportKeyEmptyUsage) {
|
| blink::WebCryptoKey key;
|
| std::string key_raw_hex_in = "025a8cf3f08b4f6c5f33bbc76a471939";
|
| - EXPECT_EQ(
|
| - Status::ErrorCreateKeyEmptyUsages(),
|
| - ImportKey(blink::WebCryptoKeyFormatRaw,
|
| - CryptoData(HexStringToBytes(key_raw_hex_in)),
|
| - CreateHmacImportAlgorithmNoLength(
|
| - blink::WebCryptoAlgorithmIdSha1),
|
| - true, 0, &key));
|
| + EXPECT_EQ(Status::ErrorCreateKeyEmptyUsages(),
|
| + ImportKey(blink::WebCryptoKeyFormatRaw,
|
| + CryptoData(HexStringToBytes(key_raw_hex_in)),
|
| + CreateHmacImportAlgorithmNoLength(
|
| + blink::WebCryptoAlgorithmIdSha1),
|
| + true, 0, &key));
|
| }
|
|
|
| TEST(WebCryptoHmacTest, ImportKeyJwkKeyOpsSignVerify) {
|
| @@ -600,5 +597,3 @@ TEST(WebCryptoHmacTest, ImportJwkKeyTruncation) {
|
| } // namespace
|
|
|
| } // namespace webcrypto
|
| -
|
| -} // namespace content
|
|
|