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

Unified Diff: net/quic/platform/api/quic_lru_cache_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/platform/api/quic_lru_cache_test.cc
diff --git a/net/quic/platform/api/quic_lru_cache_test.cc b/net/quic/platform/api/quic_lru_cache_test.cc
index 77b6bacc43bcfbbeee10beb59f117f84f8e8eedd..51aba304ef7bf87eea40aee4d6f368621212d040 100644
--- a/net/quic/platform/api/quic_lru_cache_test.cc
+++ b/net/quic/platform/api/quic_lru_cache_test.cc
@@ -4,7 +4,7 @@
#include "net/quic/platform/api/quic_lru_cache.h"
-#include "testing/gtest/include/gtest/gtest.h"
+#include "net/quic/platform/api/quic_test.h"
namespace net {
namespace test {
@@ -16,7 +16,9 @@ struct CachedItem {
uint32_t value;
};
-TEST(QuicLRUCacheTest, InsertAndLookup) {
+class QuicLRUCacheTest : public QuicTest {};
+
+TEST_F(QuicLRUCacheTest, InsertAndLookup) {
QuicLRUCache<int, CachedItem> cache(5);
EXPECT_EQ(nullptr, cache.Lookup(1));
EXPECT_EQ(0u, cache.Size());
@@ -44,7 +46,7 @@ TEST(QuicLRUCacheTest, InsertAndLookup) {
EXPECT_EQ(0u, cache.Size());
}
-TEST(QuicLRUCacheTest, Eviction) {
+TEST_F(QuicLRUCacheTest, Eviction) {
QuicLRUCache<int, CachedItem> cache(3);
for (size_t i = 1; i <= 4; ++i) {
« no previous file with comments | « net/quic/platform/api/quic_hostname_utils_test.cc ('k') | net/quic/platform/api/quic_reference_counted_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698