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/tools/quic/test_tools/http_message.h" | 5 #include "net/tools/quic/test_tools/http_message.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/logging.h" | 9 #include "base/logging.h" |
11 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
12 | 11 |
13 using base::StringPiece; | 12 using base::StringPiece; |
14 using std::string; | 13 using std::string; |
15 using std::vector; | 14 using std::vector; |
16 | 15 |
17 namespace net { | 16 namespace net { |
18 namespace tools { | 17 namespace tools { |
19 namespace test { | 18 namespace test { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 vector<StringPiece> content_lengths; | 149 vector<StringPiece> content_lengths; |
151 headers()->GetAllOfHeader(kContentLength, &content_lengths); | 150 headers()->GetAllOfHeader(kContentLength, &content_lengths); |
152 CHECK_GE(1ul, content_lengths.size()); | 151 CHECK_GE(1ul, content_lengths.size()); |
153 | 152 |
154 CHECK_EQ(has_complete_message_, IsCompleteMessage(*this)); | 153 CHECK_EQ(has_complete_message_, IsCompleteMessage(*this)); |
155 } | 154 } |
156 | 155 |
157 } // namespace test | 156 } // namespace test |
158 } // namespace tools | 157 } // namespace tools |
159 } // namespace net | 158 } // namespace net |
OLD | NEW |