Index: components/webcrypto/algorithms/aes_ctr_unittest.cc |
diff --git a/components/webcrypto/algorithms/aes_ctr_unittest.cc b/components/webcrypto/algorithms/aes_ctr_unittest.cc |
index 9668ca5b8ab7041ef5f6c7ef985cabcbed66fd62..16edd20fd63bf6e69e2e07f4351ded0785f395ce 100644 |
--- a/components/webcrypto/algorithms/aes_ctr_unittest.cc |
+++ b/components/webcrypto/algorithms/aes_ctr_unittest.cc |
@@ -2,6 +2,10 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <stddef.h> |
+#include <stdint.h> |
+ |
+#include "base/macros.h" |
#include "base/values.h" |
#include "components/webcrypto/algorithm_dispatch.h" |
#include "components/webcrypto/algorithms/test_helpers.h" |
@@ -73,7 +77,7 @@ TEST_F(WebCryptoAesCtrTest, InvalidCounterBlockLength) { |
const unsigned int kBadCounterBlockLengthBytes[] = {0, 15, 17}; |
blink::WebCryptoKey key = ImportSecretKeyFromRaw( |
- std::vector<uint8>(16), // 128-bit key of all zeros. |
+ std::vector<uint8_t>(16), // 128-bit key of all zeros. |
CreateAlgorithm(blink::WebCryptoAlgorithmIdAesCtr), |
blink::WebCryptoKeyUsageEncrypt | blink::WebCryptoKeyUsageDecrypt); |
@@ -98,7 +102,7 @@ TEST_F(WebCryptoAesCtrTest, InvalidCounterLength) { |
const uint8_t kBadCounterLengthBits[] = {0, 129}; |
blink::WebCryptoKey key = ImportSecretKeyFromRaw( |
- std::vector<uint8>(16), // 128-bit key of all zeros. |
+ std::vector<uint8_t>(16), // 128-bit key of all zeros. |
CreateAlgorithm(blink::WebCryptoAlgorithmIdAesCtr), |
blink::WebCryptoKeyUsageEncrypt | blink::WebCryptoKeyUsageDecrypt); |
@@ -131,7 +135,7 @@ TEST_F(WebCryptoAesCtrTest, OverflowAndRepeatCounter) { |
const uint8_t kStartCounter[] = {0, 1, 15}; |
blink::WebCryptoKey key = ImportSecretKeyFromRaw( |
- std::vector<uint8>(16), // 128-bit key of all zeros. |
+ std::vector<uint8_t>(16), // 128-bit key of all zeros. |
CreateAlgorithm(blink::WebCryptoAlgorithmIdAesCtr), |
blink::WebCryptoKeyUsageEncrypt | blink::WebCryptoKeyUsageDecrypt); |