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

Unified Diff: net/quic/quic_one_block_arena_test.cc

Issue 1660533002: Landing Recent QUIC changes until 01/26/2016 18:14 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/quic_one_block_arena.h ('k') | net/quic/quic_packet_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_one_block_arena_test.cc
diff --git a/net/quic/quic_one_block_arena_test.cc b/net/quic/quic_one_block_arena_test.cc
index 0b5024865aaf9ca9b8f775f2cc03d35075cc55c2..39e7767c3567c5318884cae984fb794378993829 100644
--- a/net/quic/quic_one_block_arena_test.cc
+++ b/net/quic/quic_one_block_arena_test.cc
@@ -21,21 +21,12 @@ struct TestObject {
};
TEST(QuicOneBlockArenaTest, AllocateSuccess) {
- FLAGS_quic_enable_arena_allocation = true;
QuicOneBlockArena<1024> arena;
QuicArenaScopedPtr<TestObject> ptr = arena.New<TestObject>();
EXPECT_TRUE(ptr.is_from_arena());
}
-TEST(QuicOneBlockArenaTest, Disabled) {
- FLAGS_quic_enable_arena_allocation = false;
- QuicOneBlockArena<1024> arena;
- QuicArenaScopedPtr<TestObject> ptr = arena.New<TestObject>();
- EXPECT_FALSE(ptr.is_from_arena());
-}
-
TEST(QuicOneBlockArenaTest, Exhaust) {
- FLAGS_quic_enable_arena_allocation = true;
QuicOneBlockArena<1024> arena;
for (size_t i = 0; i < 1024 / kMaxAlign; ++i) {
QuicArenaScopedPtr<TestObject> ptr = arena.New<TestObject>();
@@ -48,7 +39,6 @@ TEST(QuicOneBlockArenaTest, Exhaust) {
}
TEST(QuicOneBlockArenaTest, NoOverlaps) {
- FLAGS_quic_enable_arena_allocation = true;
QuicOneBlockArena<1024> arena;
std::vector<QuicArenaScopedPtr<TestObject>> objects;
IntervalSet<uintptr_t> used;
« no previous file with comments | « net/quic/quic_one_block_arena.h ('k') | net/quic/quic_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698