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_header_block.h" | 5 #include "net/spdy/core/spdy_header_block.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "net/log/net_log_capture_mode.h" | 11 #include "net/log/net_log_capture_mode.h" |
12 #include "net/spdy/spdy_test_utils.h" | 12 #include "net/spdy/core/spdy_test_utils.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 using ::testing::ElementsAre; | 16 using ::testing::ElementsAre; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 namespace test { | 19 namespace test { |
20 | 20 |
21 class ValueProxyPeer { | 21 class ValueProxyPeer { |
22 public: | 22 public: |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 std::vector<SpdyStringPiece> v = {"one", "two", "three"}; | 214 std::vector<SpdyStringPiece> v = {"one", "two", "three"}; |
215 SpdyStringPiece separator = ", "; | 215 SpdyStringPiece separator = ", "; |
216 char buf[15]; | 216 char buf[15]; |
217 size_t written = Join(buf, v, separator); | 217 size_t written = Join(buf, v, separator); |
218 EXPECT_EQ(15u, written); | 218 EXPECT_EQ(15u, written); |
219 EXPECT_EQ("one, two, three", SpdyStringPiece(buf, written)); | 219 EXPECT_EQ("one, two, three", SpdyStringPiece(buf, written)); |
220 } | 220 } |
221 | 221 |
222 } // namespace test | 222 } // namespace test |
223 } // namespace net | 223 } // namespace net |
OLD | NEW |