| Index: net/url_request/test_url_fetcher_factory.h
|
| diff --git a/net/url_request/test_url_fetcher_factory.h b/net/url_request/test_url_fetcher_factory.h
|
| index 27f2f7a90b7adbd73398444284cb61a4ace095fa..d7f0d305481c7e5588c96f8ffa907ea1b2a1ffab 100644
|
| --- a/net/url_request/test_url_fetcher_factory.h
|
| +++ b/net/url_request/test_url_fetcher_factory.h
|
| @@ -81,6 +81,9 @@ class TestURLFetcher : public URLFetcher {
|
| virtual ~TestURLFetcher();
|
|
|
| // URLFetcher implementation
|
| + virtual void SetUploadDataStream(
|
| + const std::string& upload_content_type,
|
| + scoped_ptr<UploadDataStream> upload_content) OVERRIDE;
|
| virtual void SetUploadData(const std::string& upload_content_type,
|
| const std::string& upload_content) OVERRIDE;
|
| virtual void SetChunkedUpload(
|
| @@ -145,6 +148,11 @@ class TestURLFetcher : public URLFetcher {
|
| // Unique ID in our factory.
|
| int id() const { return id_; }
|
|
|
| + // Returns the data stream uploaded on this URLFetcher.
|
| + const UploadDataStream* upload_data_stream() const {
|
| + return upload_data_stream_.get();
|
| + }
|
| +
|
| // Returns the data uploaded on this URLFetcher.
|
| const std::string& upload_data() const { return upload_data_; }
|
|
|
| @@ -186,6 +194,7 @@ class TestURLFetcher : public URLFetcher {
|
| URLFetcherDelegate* delegate_;
|
| DelegateForTests* delegate_for_tests_;
|
| std::string upload_data_;
|
| + scoped_ptr<UploadDataStream> upload_data_stream_;
|
| std::list<std::string> chunks_;
|
| bool did_receive_last_chunk_;
|
|
|
|
|