/external/chromium_org/components/policy/core/common/cloud/ |
user_info_fetcher_unittest.cc | 52 net::TestURLFetcher* url_fetcher = url_factory_.GetFetcherByID(0); local 53 url_fetcher->set_status(net::URLRequestStatus( 55 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher); 73 net::TestURLFetcher* url_fetcher = url_factory_.GetFetcherByID(0); local 74 url_fetcher->set_response_code(net::HTTP_OK); 75 url_fetcher->SetResponseString(kUserInfoResponse); 76 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
|
/external/chromium_org/google_apis/gaia/ |
oauth2_access_token_fetcher_unittest.cc | 17 #include "net/url_request/url_fetcher.h" 100 TestURLFetcher* url_fetcher = new TestURLFetcher(0, url, &fetcher_); local 103 url_fetcher->set_status(URLRequestStatus(status, 0)); 106 url_fetcher->set_response_code(response_code); 109 url_fetcher->SetResponseString(body); 112 .WillOnce(Return(url_fetcher)); 113 return url_fetcher; 126 TestURLFetcher* url_fetcher = SetupGetAccessToken(false, 0, std::string()); local 129 fetcher_.OnURLFetchComplete(url_fetcher); 134 TestURLFetcher* url_fetcher local 142 TestURLFetcher* url_fetcher = SetupGetAccessToken( local [all...] |
oauth2_api_call_flow_unittest.cc | 21 #include "net/url_request/url_fetcher.h" 127 TestURLFetcher* url_fetcher = new TestURLFetcher(0, url, flow_.get()); local 130 url_fetcher->set_status(URLRequestStatus(status, 0)); 133 url_fetcher->set_response_code(response_code); 136 url_fetcher->SetResponseString(body); 138 return url_fetcher; 158 TestURLFetcher* url_fetcher = local 161 .WillOnce(Return(url_fetcher)); 162 return url_fetcher; 177 TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_OK) local 225 TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_UNAUTHORIZED); local 242 TestURLFetcher* url_fetcher = SetupApiCall(true, net::HTTP_OK); local 258 TestURLFetcher* url_fetcher = SetupApiCall(false, net::HTTP_BAD_GATEWAY); local [all...] |
/external/chromium_org/chrome/browser/safe_browsing/ |
protocol_manager_unittest.cc | 61 const net::TestURLFetcher* url_fetcher, 63 ASSERT_TRUE(url_fetcher); 64 EXPECT_EQ(net::LOAD_DISABLE_CACHE, url_fetcher->GetLoadFlags()); 66 url_fetcher->upload_data()); 69 url_fetcher->GetOriginalURL()); 72 void ValidateUpdateFetcherRequest(const net::TestURLFetcher* url_fetcher) { 73 ValidateUpdateFetcherRequest(url_fetcher, kUrlPrefix); 76 void ValidateRedirectFetcherRequest(const net::TestURLFetcher* url_fetcher, 78 ASSERT_TRUE(url_fetcher); 79 EXPECT_EQ(net::LOAD_DISABLE_CACHE, url_fetcher->GetLoadFlags()) 368 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 409 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 457 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 504 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 552 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 603 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 651 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 698 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 747 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 794 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 839 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 875 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 921 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 969 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local 1024 net::TestURLFetcher* url_fetcher = url_fetcher_factory.GetFetcherByID(0); local [all...] |
/external/chromium_org/chrome/browser/chromeos/policy/ |
device_cloud_policy_manager_chromeos_unittest.cc | 364 net::TestURLFetcher* url_fetcher = url_fetcher_factory_.GetFetcherByID( local 366 ASSERT_TRUE(url_fetcher); 367 url_fetcher->SetMaxRetriesOn5xx(0); 368 url_fetcher->set_status(net::URLRequestStatus()); 369 url_fetcher->set_response_code(url_fetcher_response_code_); 370 url_fetcher->SetResponseString(url_fetcher_response_string_); 371 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
|
/external/chromium_org/chrome/browser/managed_mode/ |
managed_user_refresh_token_fetcher_unittest.cc | 57 void SendResponse(net::TestURLFetcher* url_fetcher, 59 url_fetcher->set_status( 61 url_fetcher->set_response_code(net::HTTP_OK); 62 url_fetcher->SetResponseString(response); 63 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher); 66 void SetNetworkError(net::TestURLFetcher* url_fetcher, int error) { 67 url_fetcher->set_status( 69 url_fetcher->delegate()->OnURLFetchComplete(url_fetcher); 142 net::TestURLFetcher* url_fetcher = url_fetcher_factory_.GetFetcherByID(1); local 165 net::TestURLFetcher* url_fetcher = url_fetcher_factory_.GetFetcherByID( local [all...] |
/external/chromium_org/chrome/browser/media/ |
webrtc_log_uploader.cc | 25 #include "net/url_request/url_fetcher.h" 261 net::URLFetcher* url_fetcher = local 263 url_fetcher->SetRequestContext(request_context); 264 url_fetcher->SetUploadData(content_type, *post_data); 265 url_fetcher->Start(); 266 upload_done_data_[url_fetcher] = upload_done_data;
|