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

Unified Diff: net/quic/core/crypto/channel_id_test.cc

Issue 2848203002: Add a platform implementation of QuicTest and QuicTestWithParam (Closed)
Patch Set: net/quic/platform/impl/quic_test_impl.cc Created 3 years, 8 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
Index: net/quic/core/crypto/channel_id_test.cc
diff --git a/net/quic/core/crypto/channel_id_test.cc b/net/quic/core/crypto/channel_id_test.cc
index 6fac40f04901f55a8444b484502df2d0de2bc470..08875eb9544ba5800ef1974f593174fe0c5dfe9e 100644
--- a/net/quic/core/crypto/channel_id_test.cc
+++ b/net/quic/core/crypto/channel_id_test.cc
@@ -6,8 +6,8 @@
#include <memory>
+#include "net/quic/platform/api/quic_test.h"
#include "net/quic/test_tools/crypto_test_utils.h"
-#include "testing/gtest/include/gtest/gtest.h"
using std::string;
@@ -243,8 +243,10 @@ bool DecodeHexString(const char* in,
} // namespace
+class ChannelIDTest : public QuicTest {};
+
// A known answer test for ChannelIDVerifier.
-TEST(ChannelIDTest, VerifyKnownAnswerTest) {
+TEST_F(ChannelIDTest, VerifyKnownAnswerTest) {
char msg[1024];
size_t msg_len;
char key[64];
@@ -281,7 +283,7 @@ TEST(ChannelIDTest, VerifyKnownAnswerTest) {
}
}
-TEST(ChannelIDTest, SignAndVerify) {
+TEST_F(ChannelIDTest, SignAndVerify) {
std::unique_ptr<ChannelIDSource> source(
crypto_test_utils::ChannelIDSourceForTesting());
« no previous file with comments | « net/quic/core/crypto/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/core/crypto/common_cert_set_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698