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

Unified Diff: net/quic/platform/api/quic_str_cat_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/platform/api/quic_reference_counted_test.cc ('k') | net/quic/platform/api/quic_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/platform/api/quic_str_cat_test.cc
diff --git a/net/quic/platform/api/quic_str_cat_test.cc b/net/quic/platform/api/quic_str_cat_test.cc
index dc417d8e36767fcc287d6d95ef0a77ae781f4562..b8b0fb6e7fb8c8b62cc009fb54851fde02a3e0de 100644
--- a/net/quic/platform/api/quic_str_cat_test.cc
+++ b/net/quic/platform/api/quic_str_cat_test.cc
@@ -5,7 +5,7 @@
#include "net/quic/platform/api/quic_str_cat.h"
#include "net/quic/platform/api/quic_string_piece.h"
-#include "testing/gtest/include/gtest/gtest.h"
+#include "net/quic/platform/api/quic_test.h"
using std::string;
@@ -13,7 +13,9 @@ namespace net {
namespace test {
namespace {
-TEST(QuicStrCatTest, Ints) {
+class QuicStrCatTest : public QuicTest {};
+
+TEST_F(QuicStrCatTest, Ints) {
const int16_t s = -1;
const uint16_t us = 2;
const int i = -3;
@@ -39,7 +41,7 @@ TEST(QuicStrCatTest, Ints) {
EXPECT_EQ(answer, "100");
}
-TEST(QuicStrCatTest, Basics) {
+TEST_F(QuicStrCatTest, Basics) {
string result;
string strs[] = {"Hello", "Cruel", "World"};
@@ -103,7 +105,7 @@ TEST(QuicStrCatTest, Basics) {
EXPECT_EQ(result, "122333444455555666666777777788888888999999999");
}
-TEST(QuicStrCatTest, MaxArgs) {
+TEST_F(QuicStrCatTest, MaxArgs) {
string result;
// Test 10 up to 26 arguments, the current maximum
result = QuicStrCat(1, 2, 3, 4, 5, 6, 7, 8, 9, "a");
« no previous file with comments | « net/quic/platform/api/quic_reference_counted_test.cc ('k') | net/quic/platform/api/quic_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698