| Index: components/webcrypto/test/aes_kw_unittest.cc
|
| diff --git a/content/child/webcrypto/test/aes_kw_unittest.cc b/components/webcrypto/test/aes_kw_unittest.cc
|
| similarity index 98%
|
| rename from content/child/webcrypto/test/aes_kw_unittest.cc
|
| rename to components/webcrypto/test/aes_kw_unittest.cc
|
| index c7858e16cfd3426ca0f905f85f67942b73edb839..991ee9835d15f5ae5cdac612eeeba33726c8473c 100644
|
| --- a/content/child/webcrypto/test/aes_kw_unittest.cc
|
| +++ b/components/webcrypto/test/aes_kw_unittest.cc
|
| @@ -3,15 +3,15 @@
|
| // found in the LICENSE file.
|
|
|
| #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 "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
|
| #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
|
|
|
| -namespace content {
|
| +namespace components {
|
|
|
| namespace webcrypto {
|
|
|
| @@ -30,7 +30,7 @@ TEST(WebCryptoAesKwTest, GenerateKeyBadLength) {
|
| SCOPED_TRACE(i);
|
| EXPECT_EQ(Status::ErrorGenerateAesKeyLength(),
|
| GenerateSecretKey(CreateAesKwKeyGenAlgorithm(kKeyLen[i]), true,
|
| - blink::WebCryptoKeyUsageWrapKey, &key));
|
| + blink::WebCryptoKeyUsageWrapKey, &key));
|
| }
|
| }
|
|
|
| @@ -45,8 +45,8 @@ TEST(WebCryptoAesKwTest, ImportKeyEmptyUsage) {
|
| EXPECT_EQ(Status::ErrorCreateKeyEmptyUsages(),
|
| ImportKey(blink::WebCryptoKeyFormatRaw,
|
| CryptoData(std::vector<uint8_t>(16)),
|
| - CreateAlgorithm(blink::WebCryptoAlgorithmIdAesKw),
|
| - true, 0, &key));
|
| + CreateAlgorithm(blink::WebCryptoAlgorithmIdAesKw), true,
|
| + 0, &key));
|
| }
|
|
|
| TEST(WebCryptoAesKwTest, ImportKeyJwkKeyOpsWrapUnwrap) {
|
| @@ -537,4 +537,4 @@ TEST(WebCryptoAesKwTest, UnwrapRsaSsaPublicKeyBadUsage_JWK) {
|
|
|
| } // namespace webcrypto
|
|
|
| -} // namespace content
|
| +} // namespace components
|
|
|