| Index: net/url_request/url_request_test_job.cc
|
| ===================================================================
|
| --- net/url_request/url_request_test_job.cc (revision 8565)
|
| +++ net/url_request/url_request_test_job.cc (working copy)
|
| @@ -93,7 +93,8 @@
|
| this->NotifyHeadersComplete();
|
| }
|
|
|
| -bool URLRequestTestJob::ReadRawData(char* buf, int buf_size, int *bytes_read) {
|
| +bool URLRequestTestJob::ReadRawData(net::IOBuffer* buf, int buf_size,
|
| + int *bytes_read) {
|
| if (stage_ == WAITING) {
|
| async_buf_ = buf;
|
| async_buf_size_ = buf_size;
|
| @@ -112,7 +113,7 @@
|
| if (to_read + offset_ > static_cast<int>(data_.length()))
|
| to_read = static_cast<int>(data_.length()) - offset_;
|
|
|
| - memcpy(buf, &data_.c_str()[offset_], to_read);
|
| + memcpy(buf->data(), &data_.c_str()[offset_], to_read);
|
| offset_ += to_read;
|
|
|
| *bytes_read = to_read;
|
|
|