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/spdy_pinnable_buffer_piece.h" | 5 #include "net/spdy/core/spdy_pinnable_buffer_piece.h" |
6 | 6 |
| 7 #include "net/spdy/core/spdy_prefixed_buffer_reader.h" |
7 #include "net/spdy/platform/api/spdy_string.h" | 8 #include "net/spdy/platform/api/spdy_string.h" |
8 #include "net/spdy/spdy_prefixed_buffer_reader.h" | |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 | 12 |
13 namespace test { | 13 namespace test { |
14 | 14 |
15 class SpdyPinnableBufferPieceTest : public ::testing::Test { | 15 class SpdyPinnableBufferPieceTest : public ::testing::Test { |
16 protected: | 16 protected: |
17 SpdyPrefixedBufferReader Build(const SpdyString& prefix, | 17 SpdyPrefixedBufferReader Build(const SpdyString& prefix, |
18 const SpdyString& suffix) { | 18 const SpdyString& suffix) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 SpdyPinnableBufferPiece empty; | 70 SpdyPinnableBufferPiece empty; |
71 piece2.Swap(&empty); | 71 piece2.Swap(&empty); |
72 | 72 |
73 EXPECT_EQ(SpdyStringPiece(""), SpdyStringPiece(piece2)); | 73 EXPECT_EQ(SpdyStringPiece(""), SpdyStringPiece(piece2)); |
74 EXPECT_FALSE(piece2.IsPinned()); | 74 EXPECT_FALSE(piece2.IsPinned()); |
75 } | 75 } |
76 | 76 |
77 } // namespace test | 77 } // namespace test |
78 | 78 |
79 } // namespace net | 79 } // namespace net |
OLD | NEW |