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 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_TEST_TOOLS_HTTP_MESSAGE_TEST_UTILS_H_ | 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_TEST_TOOLS_HTTP_MESSAGE_TEST_UTILS_H_ |
6 #define NET_TOOLS_QUIC_TEST_TOOLS_TEST_TOOLS_HTTP_MESSAGE_TEST_UTILS_H_ | 6 #define NET_TOOLS_QUIC_TEST_TOOLS_TEST_TOOLS_HTTP_MESSAGE_TEST_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/string_piece.h" | 11 #include "base/string_piece.h" |
12 #include "net/tools/flip_server/balsa_enums.h" | 12 #include "net/tools/flip_server/balsa_enums.h" |
13 #include "net/tools/flip_server/balsa_headers.h" | 13 #include "net/tools/flip_server/balsa_headers.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
| 16 namespace tools { |
16 namespace test { | 17 namespace test { |
17 | 18 |
18 class HttpConstants { | 19 class HttpConstants { |
19 public: | 20 public: |
20 enum Version { | 21 enum Version { |
21 HTTP_UNKNOWN = 0, | 22 HTTP_UNKNOWN = 0, |
22 HTTP_0_9, | 23 HTTP_0_9, |
23 HTTP_1_0, | 24 HTTP_1_0, |
24 HTTP_1_1 | 25 HTTP_1_1 |
25 }; | 26 }; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // that are intentionally invalid. | 120 // that are intentionally invalid. |
120 bool skip_message_validation_; | 121 bool skip_message_validation_; |
121 | 122 |
122 private: | 123 private: |
123 void InitializeFields(); | 124 void InitializeFields(); |
124 | 125 |
125 DISALLOW_COPY_AND_ASSIGN(HTTPMessage); | 126 DISALLOW_COPY_AND_ASSIGN(HTTPMessage); |
126 }; | 127 }; |
127 | 128 |
128 } // namespace test | 129 } // namespace test |
| 130 } // namespace tools |
129 } // namespace net | 131 } // namespace net |
130 | 132 |
131 #endif // NET_TOOLS_QUIC_TEST_TOOLS_TEST_TOOLS_HTTP_MESSAGE_TEST_UTILS_H_ | 133 #endif // NET_TOOLS_QUIC_TEST_TOOLS_TEST_TOOLS_HTTP_MESSAGE_TEST_UTILS_H_ |
OLD | NEW |