Home | History | Annotate | Download | only in url_request

Lines Matching refs:fetcher_

85   URLFetcherTest() : fetcher_(NULL) {}
137 URLFetcherImpl* fetcher_;
162 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
163 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
165 fetcher_->Start();
180 delete fetcher_; // Have to delete this here and not in the destructor,
215 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
216 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
223 ASSERT_EQ(fetcher_, source);
225 completed_fetcher_.reset(fetcher_);
520 fetcher_ = new URLFetcherImpl(url, URLFetcher::POST, this);
521 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
523 fetcher_->SetUploadData("application/x-www-form-urlencoded", "bobsyeruncle");
524 fetcher_->Start();
545 fetcher_ = new URLFetcherImpl(url, URLFetcher::POST, this);
546 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
548 fetcher_->SetUploadFilePath("application/x-www-form-urlencoded",
553 fetcher_->Start();
570 fetcher_ = new URLFetcherImpl(url, URLFetcher::POST, this);
571 fetcher_->SetRequestContext(new TestURLRequestContextGetter(
573 fetcher_->SetUploadData("text/plain", std::string());
574 fetcher_->Start();
591 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
592 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
594 fetcher_->Start();
608 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
609 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
612 fetcher_->Start();
632 fetcher_ = new URLFetcherImpl(url, URLFetcher::POST, this);
633 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
639 fetcher_->SetChunkedUpload("application/x-www-form-urlencoded");
640 fetcher_->Start();
642 fetcher_->AppendChunkToUpload(chunk_, false);
657 fetcher_->AppendChunkToUpload(chunk_, true);
689 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
690 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
692 fetcher_->SetStopOnRedirect(true);
693 fetcher_->Start();
707 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
708 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
711 fetcher_->SetMaxRetriesOn5xx(11);
712 fetcher_->Start();
731 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
733 fetcher_->Start();
744 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
745 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
747 fetcher_->SetAutomaticallyRetryOn5xx(false);
749 fetcher_->SetMaxRetriesOn5xx(11);
750 fetcher_->Start();
763 EXPECT_GT(fetcher_->GetBackoffDelay().InMicroseconds(), 0);
803 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
806 fetcher_->SetRequestContext(context_getter);
807 fetcher_->SetMaxRetriesOn5xx(2);
808 fetcher_->Start();
823 delete fetcher_;
838 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
840 fetcher_->Start();
849 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
850 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
854 fetcher_->SaveResponseToFileAtPath(file_path, io_message_loop_proxy());
855 fetcher_->Start();
859 fetcher_ = new URLFetcherImpl(url, URLFetcher::GET, this);
860 fetcher_->SetRequestContext(new ThrottlingTestURLRequestContextGetter(
864 fetcher_->SaveResponseToTemporaryFile(io_message_loop_proxy());
865 fetcher_->Start();
940 delete fetcher_;
949 fetcher_->Start();
975 fetcher_->SetAutomaticallyRetryOnNetworkChanges(3);
976 fetcher_->Start();
1015 fetcher_->SetAutomaticallyRetryOnNetworkChanges(3);
1016 fetcher_->Start();