| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |