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

Unified Diff: net/quic/core/quic_tag_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
« no previous file with comments | « net/quic/core/quic_sustained_bandwidth_recorder_test.cc ('k') | net/quic/core/quic_time_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_tag_test.cc
diff --git a/net/quic/core/quic_tag_test.cc b/net/quic/core/quic_tag_test.cc
index 92a51d7b1855b932e54381047260d6a8962abaf6..7ddab1d662240383bdc1dc22bdd7aa2da3b3a4f9 100644
--- a/net/quic/core/quic_tag_test.cc
+++ b/net/quic/core/quic_tag_test.cc
@@ -5,14 +5,15 @@
#include "net/quic/core/quic_tag.h"
#include "net/quic/core/crypto/crypto_protocol.h"
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
+#include "net/quic/platform/api/quic_test.h"
namespace net {
namespace test {
namespace {
-TEST(QuicTagTest, TagToString) {
+class QuicTagTest : public QuicTest {};
+
+TEST_F(QuicTagTest, TagToString) {
EXPECT_EQ("SCFG", QuicTagToString(kSCFG));
EXPECT_EQ("SNO ", QuicTagToString(kServerNonceTag));
EXPECT_EQ("CRT ", QuicTagToString(kCertificateTag));
@@ -22,7 +23,7 @@ TEST(QuicTagTest, TagToString) {
EXPECT_EQ("525092931", QuicTagToString(MakeQuicTag('C', 'H', 'L', '\x1f')));
}
-TEST(QuicTagTest, MakeQuicTag) {
+TEST_F(QuicTagTest, MakeQuicTag) {
QuicTag tag = MakeQuicTag('A', 'B', 'C', 'D');
char bytes[4];
memcpy(bytes, &tag, 4);
« no previous file with comments | « net/quic/core/quic_sustained_bandwidth_recorder_test.cc ('k') | net/quic/core/quic_time_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698