OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/http2/hpack/decoder/hpack_decoder_string_buffer.h" | 5 #include "net/http2/hpack/decoder/hpack_decoder_string_buffer.h" |
6 | 6 |
7 // Tests of HpackDecoderStringBuffer. | 7 // Tests of HpackDecoderStringBuffer. |
8 | 8 |
9 #include <sstream> | 9 #include <sstream> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "net/http2/tools/failure.h" | 14 #include "net/http2/tools/failure.h" |
15 #include "net/spdy/spdy_test_utils.h" | 15 #include "net/spdy/core/spdy_test_utils.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 using ::testing::AssertionResult; | 19 using ::testing::AssertionResult; |
20 using ::testing::AssertionSuccess; | 20 using ::testing::AssertionSuccess; |
21 using ::testing::HasSubstr; | 21 using ::testing::HasSubstr; |
22 using base::StringPiece; | 22 using base::StringPiece; |
23 using std::string; | 23 using std::string; |
24 | 24 |
25 namespace net { | 25 namespace net { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 EXPECT_FALSE(buf_.OnEnd()); | 246 EXPECT_FALSE(buf_.OnEnd()); |
247 LOG(INFO) << buf_; | 247 LOG(INFO) << buf_; |
248 } | 248 } |
249 | 249 |
250 // TODO(jamessynge): Add tests for ReleaseString(). | 250 // TODO(jamessynge): Add tests for ReleaseString(). |
251 | 251 |
252 } // namespace | 252 } // namespace |
253 } // namespace test | 253 } // namespace test |
254 } // namespace net | 254 } // namespace net |
OLD | NEW |