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

Side by Side Diff: net/quic/core/quic_one_block_arena_test.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_one_block_arena.h ('k') | net/quic/core/quic_packet_creator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_one_block_arena.h" 5 #include "net/quic/core/quic_one_block_arena.h"
6 6
7 #include "net/quic/interval_set.h" 7 #include "net/quic/core/interval_set.h"
8 #include "net/quic/quic_flags.h" 8 #include "net/quic/core/quic_flags.h"
9 #include "net/quic/quic_utils.h" 9 #include "net/quic/core/quic_utils.h"
10 #include "net/test/gtest_util.h" 10 #include "net/test/gtest_util.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace net { 14 namespace net {
15 namespace { 15 namespace {
16 16
17 static const uint32_t kMaxAlign = 8; 17 static const uint32_t kMaxAlign = 8;
18 18
19 struct TestObject { 19 struct TestObject {
(...skipping 29 matching lines...) Expand all
49 uintptr_t begin = reinterpret_cast<uintptr_t>(ptr.get()); 49 uintptr_t begin = reinterpret_cast<uintptr_t>(ptr.get());
50 uintptr_t end = begin + sizeof(TestObject); 50 uintptr_t end = begin + sizeof(TestObject);
51 EXPECT_FALSE(used.Contains(begin)); 51 EXPECT_FALSE(used.Contains(begin));
52 EXPECT_FALSE(used.Contains(end - 1)); 52 EXPECT_FALSE(used.Contains(end - 1));
53 used.Add(begin, end); 53 used.Add(begin, end);
54 } 54 }
55 } 55 }
56 56
57 } // namespace 57 } // namespace
58 } // namespace net 58 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_one_block_arena.h ('k') | net/quic/core/quic_packet_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698