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

Unified Diff: net/quic/core/quic_utils_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_unacked_packet_map_test.cc ('k') | net/quic/core/quic_version_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_utils_test.cc
diff --git a/net/quic/core/quic_utils_test.cc b/net/quic/core/quic_utils_test.cc
index 201ae4b0de2d95b5fca20ba13113eabd79c35bf2..4f99397fbbe150aa81bf69e6565902ad677f3af0 100644
--- a/net/quic/core/quic_utils_test.cc
+++ b/net/quic/core/quic_utils_test.cc
@@ -5,7 +5,7 @@
#include "net/quic/core/quic_utils.h"
#include "net/quic/core/crypto/crypto_protocol.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(QuicUtilsTest, DetermineAddressChangeType) {
+class QuicUtilsTest : public QuicTest {};
+
+TEST_F(QuicUtilsTest, DetermineAddressChangeType) {
const string kIPv4String1 = "1.2.3.4";
const string kIPv4String2 = "1.2.3.5";
const string kIPv4String3 = "1.1.3.5";
@@ -88,7 +90,7 @@ uint128 IncrementalHashReference(const void* data, size_t len) {
return hash;
}
-TEST(QuicUtilsHashTest, ReferenceTest) {
+TEST_F(QuicUtilsTest, ReferenceTest) {
std::vector<uint8_t> data(32);
for (size_t i = 0; i < data.size(); ++i) {
data[i] = i % 255;
« no previous file with comments | « net/quic/core/quic_unacked_packet_map_test.cc ('k') | net/quic/core/quic_version_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698