Index: content/child/webcrypto/test/hmac_unittest.cc |
diff --git a/content/child/webcrypto/test/hmac_unittest.cc b/content/child/webcrypto/test/hmac_unittest.cc |
index fe5d082c44c6191045ddd53140d5e27913974ae8..2b6660b35fddeb4b6856dd73f45e66702c3ced92 100644 |
--- a/content/child/webcrypto/test/hmac_unittest.cc |
+++ b/content/child/webcrypto/test/hmac_unittest.cc |
@@ -121,7 +121,7 @@ TEST(WebCryptoHmacTest, GenerateKeyIsRandom) { |
blink::WebCryptoKey key = blink::WebCryptoKey::createNull(); |
blink::WebCryptoAlgorithm algorithm = |
CreateHmacKeyGenAlgorithm(blink::WebCryptoAlgorithmIdSha1, 512); |
- ASSERT_EQ(Status::Success(), GenerateSecretKey(algorithm, true, 0, &key)); |
+ ASSERT_EQ(Status::Success(), GenerateKey(algorithm, true, 0, NULL, &key)); |
EXPECT_FALSE(key.isNull()); |
EXPECT_TRUE(key.handle()); |
EXPECT_EQ(blink::WebCryptoKeyTypeSecret, key.type()); |
@@ -146,7 +146,7 @@ TEST(WebCryptoHmacTest, GenerateKeyNoLengthSha1) { |
blink::WebCryptoKey key = blink::WebCryptoKey::createNull(); |
blink::WebCryptoAlgorithm algorithm = |
CreateHmacKeyGenAlgorithm(blink::WebCryptoAlgorithmIdSha1, 0); |
- ASSERT_EQ(Status::Success(), GenerateSecretKey(algorithm, true, 0, &key)); |
+ ASSERT_EQ(Status::Success(), GenerateKey(algorithm, true, 0, NULL, &key)); |
EXPECT_TRUE(key.handle()); |
EXPECT_EQ(blink::WebCryptoKeyTypeSecret, key.type()); |
EXPECT_EQ(blink::WebCryptoAlgorithmIdHmac, key.algorithm().id()); |
@@ -164,7 +164,7 @@ TEST(WebCryptoHmacTest, GenerateKeyNoLengthSha512) { |
blink::WebCryptoKey key = blink::WebCryptoKey::createNull(); |
blink::WebCryptoAlgorithm algorithm = |
CreateHmacKeyGenAlgorithm(blink::WebCryptoAlgorithmIdSha512, 0); |
- ASSERT_EQ(Status::Success(), GenerateSecretKey(algorithm, true, 0, &key)); |
+ ASSERT_EQ(Status::Success(), GenerateKey(algorithm, true, 0, NULL, &key)); |
EXPECT_EQ(blink::WebCryptoAlgorithmIdHmac, key.algorithm().id()); |
EXPECT_EQ(blink::WebCryptoAlgorithmIdSha512, |
key.algorithm().hmacParams()->hash().id()); |