Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: components/webcrypto/algorithms/aes_ctr_unittest.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/webcrypto/algorithms/aes_ctr.cc ('k') | components/webcrypto/algorithms/aes_gcm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « components/webcrypto/algorithms/aes_ctr.cc ('k') | components/webcrypto/algorithms/aes_gcm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698