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

Side by Side Diff: net/spdy/core/fuzzing/hpack_fuzz_util_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/fuzzing/hpack_fuzz_util.cc ('k') | net/spdy/core/hpack/hpack_constants.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/fuzzing/hpack_fuzz_util.h" 5 #include "net/spdy/core/fuzzing/hpack_fuzz_util.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "net/spdy/spdy_test_utils.h" 13 #include "net/spdy/core/spdy_test_utils.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace net { 17 namespace net {
18 namespace test { 18 namespace test {
19 19
20 using std::map; 20 using std::map;
21 using test::a2b_hex; 21 using test::a2b_hex;
22 22
23 TEST(HpackFuzzUtilTest, GeneratorContextInitialization) { 23 TEST(HpackFuzzUtilTest, GeneratorContextInitialization) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 SpdyString unmodified(buffer, arraysize(buffer) - 1); 138 SpdyString unmodified(buffer, arraysize(buffer) - 1);
139 139
140 EXPECT_EQ(unmodified, buffer); 140 EXPECT_EQ(unmodified, buffer);
141 HpackFuzzUtil::FlipBits(reinterpret_cast<uint8_t*>(buffer), 141 HpackFuzzUtil::FlipBits(reinterpret_cast<uint8_t*>(buffer),
142 arraysize(buffer) - 1, 1); 142 arraysize(buffer) - 1, 1);
143 EXPECT_NE(unmodified, buffer); 143 EXPECT_NE(unmodified, buffer);
144 } 144 }
145 145
146 } // namespace test 146 } // namespace test
147 } // namespace net 147 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/core/fuzzing/hpack_fuzz_util.cc ('k') | net/spdy/core/hpack/hpack_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698