| Index: net/url_request/test_url_fetcher_factory.cc
|
| diff --git a/net/url_request/test_url_fetcher_factory.cc b/net/url_request/test_url_fetcher_factory.cc
|
| index 08ba483b23a01d29811999120a0c365104a9f561..e645329f7f99c112a3430f7286f279b8caa6b3ff 100644
|
| --- a/net/url_request/test_url_fetcher_factory.cc
|
| +++ b/net/url_request/test_url_fetcher_factory.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/message_loop.h"
|
| #include "net/base/host_port_pair.h"
|
| +#include "net/base/upload_data_stream.h"
|
| #include "net/http/http_response_headers.h"
|
| #include "net/url_request/url_fetcher_delegate.h"
|
| #include "net/url_request/url_fetcher_impl.h"
|
| @@ -52,6 +53,12 @@ TestURLFetcher::~TestURLFetcher() {
|
| owner_->RemoveFetcherFromMap(id_);
|
| }
|
|
|
| +void TestURLFetcher::SetUploadDataStream(
|
| + const std::string& upload_content_type,
|
| + scoped_ptr<UploadDataStream> upload_content) {
|
| + upload_data_stream_ = upload_content.Pass();
|
| +}
|
| +
|
| void TestURLFetcher::SetUploadData(const std::string& upload_content_type,
|
| const std::string& upload_content) {
|
| upload_data_ = upload_content;
|
|
|