OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/http/http_transaction_unittest.h" | 5 #include "net/http/http_transaction_unittest.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/string_util.h" | 10 #include "base/stringprintf.h" |
11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
12 #include "net/base/load_flags.h" | 12 #include "net/base/load_flags.h" |
13 #include "net/disk_cache/disk_cache.h" | 13 #include "net/disk_cache/disk_cache.h" |
14 #include "net/http/http_cache.h" | 14 #include "net/http/http_cache.h" |
15 #include "net/http/http_request_info.h" | 15 #include "net/http/http_request_info.h" |
16 #include "net/http/http_response_info.h" | 16 #include "net/http/http_response_info.h" |
17 #include "net/http/http_transaction.h" | 17 #include "net/http/http_transaction.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace { | 20 namespace { |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 if (rv > 0) { | 358 if (rv > 0) { |
359 content.append(buf->data(), rv); | 359 content.append(buf->data(), rv); |
360 } else if (rv < 0) { | 360 } else if (rv < 0) { |
361 return rv; | 361 return rv; |
362 } | 362 } |
363 } while (rv > 0); | 363 } while (rv > 0); |
364 | 364 |
365 result->swap(content); | 365 result->swap(content); |
366 return net::OK; | 366 return net::OK; |
367 } | 367 } |
OLD | NEW |