OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/spdy_protocol.h" | 5 #include "net/spdy/core/spdy_protocol.h" |
6 | 6 |
7 #include <iostream> | 7 #include <iostream> |
8 #include <limits> | 8 #include <limits> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "net/spdy/spdy_bitmasks.h" | 11 #include "net/spdy/core/spdy_bitmasks.h" |
12 #include "net/spdy/spdy_framer.h" | 12 #include "net/spdy/core/spdy_framer.h" |
13 #include "net/spdy/spdy_test_utils.h" | 13 #include "net/spdy/core/spdy_test_utils.h" |
14 #include "net/test/gtest_util.h" | 14 #include "net/test/gtest_util.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 | 18 |
19 std::ostream& operator<<(std::ostream& os, | 19 std::ostream& operator<<(std::ostream& os, |
20 const SpdyStreamPrecedence precedence) { | 20 const SpdyStreamPrecedence precedence) { |
21 if (precedence.is_spdy3_priority()) { | 21 if (precedence.is_spdy3_priority()) { |
22 os << "SpdyStreamPrecedence[spdy3_priority=" << precedence.spdy3_priority() | 22 os << "SpdyStreamPrecedence[spdy3_priority=" << precedence.spdy3_priority() |
23 << "]"; | 23 << "]"; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 EXPECT_EQ("", baz); | 249 EXPECT_EQ("", baz); |
250 EXPECT_EQ(SpdyStringPiece(d5.data(), d5.data_len()), "the quick brown fox"); | 250 EXPECT_EQ(SpdyStringPiece(d5.data(), d5.data_len()), "the quick brown fox"); |
251 | 251 |
252 // Confirms makes a copy of string literal. | 252 // Confirms makes a copy of string literal. |
253 SpdyDataIR d7(7, "something else"); | 253 SpdyDataIR d7(7, "something else"); |
254 EXPECT_EQ(SpdyStringPiece(d7.data(), d7.data_len()), "something else"); | 254 EXPECT_EQ(SpdyStringPiece(d7.data(), d7.data_len()), "something else"); |
255 } | 255 } |
256 | 256 |
257 } // namespace test | 257 } // namespace test |
258 } // namespace net | 258 } // namespace net |
OLD | NEW |