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

Unified Diff: net/quic/crypto/common_cert_set_test.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef 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 | « net/quic/crypto/common_cert_set_2.c ('k') | net/quic/crypto/crypto_framer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/common_cert_set_test.cc
diff --git a/net/quic/crypto/common_cert_set_test.cc b/net/quic/crypto/common_cert_set_test.cc
index 39d0d7a7a25bf9422b6d1695dac286190354fff9..e98194ca3a23780f0868a408d8c95b63ef189887 100644
--- a/net/quic/crypto/common_cert_set_test.cc
+++ b/net/quic/crypto/common_cert_set_test.cc
@@ -194,9 +194,9 @@ TEST(CommonCertSets, FindGIA_1) {
const CommonCertSets* sets(CommonCertSets::GetInstanceQUIC());
// Common Cert Set 1's hash.
- const uint64 in_hash = UINT64_C(0xff715ce4e7e9267b);
- uint64 hash;
- uint32 index;
+ const uint64_t in_hash = UINT64_C(0xff715ce4e7e9267b);
+ uint64_t hash;
+ uint32_t index;
ASSERT_TRUE(sets->MatchCert(
gia,
StringPiece(reinterpret_cast<const char*>(&in_hash), sizeof(in_hash)),
@@ -215,9 +215,9 @@ TEST(CommonCertSets, FindGIA_2) {
const CommonCertSets* sets(CommonCertSets::GetInstanceQUIC());
// Common Cert Set 2's hash.
- const uint64 in_hash = UINT64_C(0xe81a92926081e801);
- uint64 hash;
- uint32 index;
+ const uint64_t in_hash = UINT64_C(0xe81a92926081e801);
+ uint64_t hash;
+ uint32_t index;
ASSERT_TRUE(sets->MatchCert(
gia,
StringPiece(reinterpret_cast<const char*>(&in_hash), sizeof(in_hash)),
@@ -233,9 +233,9 @@ TEST(CommonCertSets, FindGIA_2) {
TEST(CommonCertSets, NonMatch) {
const CommonCertSets* sets(CommonCertSets::GetInstanceQUIC());
StringPiece not_a_cert("hello");
- const uint64 in_hash = UINT64_C(0xc9fef74053f99f39);
- uint64 hash;
- uint32 index;
+ const uint64_t in_hash = UINT64_C(0xc9fef74053f99f39);
+ uint64_t hash;
+ uint32_t index;
EXPECT_FALSE(sets->MatchCert(
not_a_cert,
StringPiece(reinterpret_cast<const char*>(&in_hash), sizeof(in_hash)),
« no previous file with comments | « net/quic/crypto/common_cert_set_2.c ('k') | net/quic/crypto/crypto_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698