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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 months 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_51_100.inc ('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 0c1b841f89ecf7a01fde614d94f604d61bb58688..51b41d8afbd761035b88270df453e940426f5c48 100644
--- a/net/quic/crypto/common_cert_set_test.cc
+++ b/net/quic/crypto/common_cert_set_test.cc
@@ -72,18 +72,18 @@ static unsigned char kGIACertificate[] = {
0x95, 0x87, 0xbc, 0xbc, 0x90, 0xf9, 0x50, 0x32,
};
-TEST(CommonCertSet, FindGIA) {
+TEST(CommonCertSets, FindGIA) {
StringPiece gia(reinterpret_cast<const char*>(kGIACertificate),
sizeof(kGIACertificate));
- CommonCertSetQUIC set;
+ CommonCertSetsQUIC set;
const uint64 in_hash = GG_UINT64_C(0xde8086f914a3af54);
uint64 hash;
uint32 index;
ASSERT_TRUE(set.MatchCert(
- gia, StringPiece(reinterpret_cast<const char*>(&in_hash),
- sizeof(in_hash)),
+ gia,
+ StringPiece(reinterpret_cast<const char*>(&in_hash), sizeof(in_hash)),
&hash, &index));
EXPECT_EQ(in_hash, hash);
@@ -93,15 +93,15 @@ TEST(CommonCertSet, FindGIA) {
EXPECT_TRUE(0 == memcmp(gia.data(), gia_copy.data(), gia.size()));
}
-TEST(CommonCertSet, NonMatch) {
- CommonCertSetQUIC set;
+TEST(CommonCertSets, NonMatch) {
+ CommonCertSetsQUIC set;
StringPiece not_a_cert("hello");
const uint64 in_hash = GG_UINT64_C(0xde8086f914a3af54);
uint64 hash;
uint32 index;
EXPECT_FALSE(set.MatchCert(
- not_a_cert, StringPiece(reinterpret_cast<const char*>(&in_hash),
- sizeof(in_hash)),
+ not_a_cert,
+ StringPiece(reinterpret_cast<const char*>(&in_hash), sizeof(in_hash)),
&hash, &index));
}
« no previous file with comments | « net/quic/crypto/common_cert_set_51_100.inc ('k') | net/quic/crypto/crypto_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698