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

Unified Diff: net/quic/core/quic_simple_buffer_allocator_test.cc

Issue 2848203002: Add a platform implementation of QuicTest and QuicTestWithParam (Closed)
Patch Set: 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/quic_simple_buffer_allocator_test.cc
diff --git a/net/quic/core/quic_simple_buffer_allocator_test.cc b/net/quic/core/quic_simple_buffer_allocator_test.cc
index 69cfad9d1fb097797e05e29981045a3a6fe62852..3549997006c6bd13b6bfb5aa2f74c958c7737b7c 100644
--- a/net/quic/core/quic_simple_buffer_allocator_test.cc
+++ b/net/quic/core/quic_simple_buffer_allocator_test.cc
@@ -5,27 +5,28 @@
#include "net/quic/core/quic_simple_buffer_allocator.h"
#include "net/quic/core/quic_packets.h"
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
+#include "net/quic/platform/api/quic_test.h"
using ::testing::Eq;
namespace net {
namespace {
-TEST(SimpleBufferAllocatorTest, NewDelete) {
+class SimpleBufferAllocatorTest : public QuicTest {};
+
+TEST_F(SimpleBufferAllocatorTest, NewDelete) {
SimpleBufferAllocator alloc;
char* buf = alloc.New(4);
EXPECT_NE(nullptr, buf);
alloc.Delete(buf);
}
-TEST(SimpleBufferAllocatorTest, DeleteNull) {
+TEST_F(SimpleBufferAllocatorTest, DeleteNull) {
SimpleBufferAllocator alloc;
alloc.Delete(nullptr);
}
-TEST(SimpleBufferAllocatorTest, StoreInUniqueStreamBuffer) {
+TEST_F(SimpleBufferAllocatorTest, StoreInUniqueStreamBuffer) {
SimpleBufferAllocator alloc;
UniqueStreamBuffer buf = NewStreamBuffer(&alloc, 4);
buf.reset();

Powered by Google App Engine
This is Rietveld 408576698