| Index: util/net/http_body_test.cc
|
| diff --git a/util/net/http_body_test.cc b/util/net/http_body_test.cc
|
| index c15fe4f02a7a5dda4063a36311656c7b69dcb036..cccc31217130bc0bdaee63d088808349ac887ded 100644
|
| --- a/util/net/http_body_test.cc
|
| +++ b/util/net/http_body_test.cc
|
| @@ -16,6 +16,7 @@
|
|
|
| #include "base/memory/scoped_ptr.h"
|
| #include "gtest/gtest.h"
|
| +#include "util/net/http_body_test_util.h"
|
|
|
| namespace crashpad {
|
| namespace test {
|
| @@ -92,23 +93,6 @@ TEST(StringHTTPBodyStream, MultipleReads) {
|
| }
|
| }
|
|
|
| -std::string ReadStreamToString(HTTPBodyStream* stream, size_t buffer_size) {
|
| - scoped_ptr<uint8_t[]> buf(new uint8_t[buffer_size]);
|
| - std::string result;
|
| -
|
| - ssize_t bytes_read;
|
| - while ((bytes_read = stream->GetBytesBuffer(buf.get(), buffer_size)) != 0) {
|
| - if (bytes_read < 0) {
|
| - ADD_FAILURE() << "Failed to read from stream: " << bytes_read;
|
| - return std::string();
|
| - }
|
| -
|
| - result.append(reinterpret_cast<char*>(buf.get()), bytes_read);
|
| - }
|
| -
|
| - return result;
|
| -}
|
| -
|
| TEST(FileHTTPBodyStream, ReadASCIIFile) {
|
| // TODO(rsesek): Use a more robust mechanism to locate testdata
|
| // <https://code.google.com/p/crashpad/issues/detail?id=4>.
|
|
|