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

Side by Side Diff: net/spdy/core/array_output_buffer_test.cc

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. 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 unified diff | Download patch
« no previous file with comments | « net/spdy/core/array_output_buffer.cc ('k') | net/spdy/core/fuzzing/hpack_example_generator.cc » ('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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/spdy/array_output_buffer.h" 5 #include "net/spdy/core/array_output_buffer.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace net { 9 namespace net {
10 namespace test { 10 namespace test {
11 11
12 // This test verifies that ArrayOutputBuffer is initialized properly. 12 // This test verifies that ArrayOutputBuffer is initialized properly.
13 TEST(ArrayOutputBufferTest, InitializedFromArray) { 13 TEST(ArrayOutputBufferTest, InitializedFromArray) {
14 char array[100]; 14 char array[100];
15 ArrayOutputBuffer buffer(array, sizeof(array)); 15 ArrayOutputBuffer buffer(array, sizeof(array));
(...skipping 24 matching lines...) Expand all
40 40
41 buffer.Reset(); 41 buffer.Reset();
42 42
43 // After a reset, the buffer should regain its full capacity. 43 // After a reset, the buffer should regain its full capacity.
44 EXPECT_EQ(sizeof(array), buffer.BytesFree()); 44 EXPECT_EQ(sizeof(array), buffer.BytesFree());
45 EXPECT_EQ((uint64_t)0, buffer.Size()); 45 EXPECT_EQ((uint64_t)0, buffer.Size());
46 } 46 }
47 47
48 } // namespace test 48 } // namespace test
49 } // namespace net 49 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/core/array_output_buffer.cc ('k') | net/spdy/core/fuzzing/hpack_example_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698