OLD | NEW |
1 // Copyright (c) 2006-2008 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "net/base/net_errors.h" | 6 #include "net/base/net_errors.h" |
7 #include "net/http/http_chunked_decoder.h" | 7 #include "net/http/http_chunked_decoder.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 | 11 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 RunTest(inputs, arraysize(inputs), "hello", true, 11); | 300 RunTest(inputs, arraysize(inputs), "hello", true, 11); |
301 } | 301 } |
302 | 302 |
303 TEST(HttpChunkedDecoderTest, MultipleExtraDataBlocks) { | 303 TEST(HttpChunkedDecoderTest, MultipleExtraDataBlocks) { |
304 const char* inputs[] = { | 304 const char* inputs[] = { |
305 "5\r\nhello\r\n0\r\n\r\nextra", | 305 "5\r\nhello\r\n0\r\n\r\nextra", |
306 " bytes" | 306 " bytes" |
307 }; | 307 }; |
308 RunTest(inputs, arraysize(inputs), "hello", true, 11); | 308 RunTest(inputs, arraysize(inputs), "hello", true, 11); |
309 } | 309 } |
OLD | NEW |