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 <cmath> | 5 #include <cmath> |
6 #include <ctime> | 6 #include <ctime> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
10 #include "net/spdy/hpack/hpack_constants.h" | 10 #include "net/spdy/core/hpack/hpack_constants.h" |
11 #include "net/spdy/hpack/hpack_decoder.h" | 11 #include "net/spdy/core/hpack/hpack_decoder.h" |
12 #include "net/spdy/hpack/hpack_encoder.h" | 12 #include "net/spdy/core/hpack/hpack_encoder.h" |
| 13 #include "net/spdy/core/spdy_test_utils.h" |
13 #include "net/spdy/platform/api/spdy_string.h" | 14 #include "net/spdy/platform/api/spdy_string.h" |
14 #include "net/spdy/spdy_test_utils.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 namespace { | 20 namespace { |
21 | 21 |
22 // Supports testing with the input split at every byte boundary. | 22 // Supports testing with the input split at every byte boundary. |
23 enum InputSizeParam { ALL_INPUT, ONE_BYTE, ZERO_THEN_ONE_BYTE }; | 23 enum InputSizeParam { ALL_INPUT, ONE_BYTE, ZERO_THEN_ONE_BYTE }; |
24 | 24 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 headers[name] = value; | 220 headers[name] = value; |
221 } | 221 } |
222 EXPECT_TRUE(RoundTrip(headers)); | 222 EXPECT_TRUE(RoundTrip(headers)); |
223 } | 223 } |
224 } | 224 } |
225 | 225 |
226 } // namespace | 226 } // namespace |
227 | 227 |
228 } // namespace test | 228 } // namespace test |
229 } // namespace net | 229 } // namespace net |
OLD | NEW |