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/tools/hpack_example.h" | 5 #include "net/http2/hpack/tools/hpack_example.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "net/spdy/spdy_test_utils.h" | 10 #include "net/spdy/core/spdy_test_utils.h" |
11 | 11 |
12 using base::StringPiece; | 12 using base::StringPiece; |
13 using std::string; | 13 using std::string; |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 namespace test { | 16 namespace test { |
17 namespace { | 17 namespace { |
18 | 18 |
19 void HpackExampleToStringOrDie(StringPiece example, string* output) { | 19 void HpackExampleToStringOrDie(StringPiece example, string* output) { |
20 while (!example.empty()) { | 20 while (!example.empty()) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } // namespace | 52 } // namespace |
53 | 53 |
54 string HpackExampleToStringOrDie(StringPiece example) { | 54 string HpackExampleToStringOrDie(StringPiece example) { |
55 string output; | 55 string output; |
56 HpackExampleToStringOrDie(example, &output); | 56 HpackExampleToStringOrDie(example, &output); |
57 return output; | 57 return output; |
58 } | 58 } |
59 | 59 |
60 } // namespace test | 60 } // namespace test |
61 } // namespace net | 61 } // namespace net |
OLD | NEW |