Lines Matching refs:GetURL
642 request->SetURL(GetURL(RESULT_HTML)); in OnBeforeResourceLoad()
668 const std::string& url = request->GetURL(); in GetResourceHandler()
669 if (url == GetURL(RESULT_HTML) && mode_ == RESTART_RESOURCE_RESPONSE) { in GetResourceHandler()
679 } else if (url == GetURL(RESULT_HTML)) { in GetResourceHandler()
683 } else if (url == GetURL(REDIRECT_HTML) && in GetResourceHandler()
694 } else if (url == GetURL(REDIRECT_HTML) || url == GetURL(REDIRECT2_HTML)) { in GetResourceHandler()
698 EXPECT_STREQ(GetURL(REDIRECT_HTML), url.c_str()); in GetResourceHandler()
699 redirect_url = GetURL(RESULT_HTML); in GetResourceHandler()
701 EXPECT_STREQ(GetURL(REDIRECT2_HTML), url.c_str()); in GetResourceHandler()
702 redirect_url = GetURL(REDIRECT_HTML); in GetResourceHandler()
728 EXPECT_STREQ(GetURL(RESULT_HTML), new_url.ToString().c_str()); in OnResourceRedirect()
732 EXPECT_STREQ(GetURL(REDIRECT_HTML), new_url.ToString().c_str()); in OnResourceRedirect()
734 new_url = GetURL(RESULT_HTML); in OnResourceRedirect()
758 request->SetURL(GetURL(RESULT_HTML)); in OnResourceResponse()
1002 const char* GetURL(TestUrl url) const { in GetURL() function in __anon59e20f910111::BasicResponseTest
1025 return GetURL(RESULT_HTML); in GetStartupURL()
1027 return GetURL(REDIRECT2_HTML); in GetStartupURL()
1029 return GetURL(REDIRECT_HTML); in GetStartupURL()
1217 EXPECT_STREQ(GetURL(RESULT_HTML), request->GetURL().ToString().c_str()) in VerifyState()
1238 EXPECT_STREQ(GetStartupURL(), request->GetURL().ToString().c_str()) in VerifyState()
1242 EXPECT_STREQ(GetURL(RESULT_HTML), request->GetURL().ToString().c_str()) in VerifyState()
1287 EXPECT_STREQ("", response->GetURL().ToString().c_str()) << callback; in VerifyOKResponse()
1302 EXPECT_STREQ("", response->GetURL().ToString().c_str()) << callback; in VerifyOKResponse()
1317 EXPECT_STREQ("", response->GetURL().ToString().c_str()) << callback; in VerifyRedirectResponse()
1534 const std::string& url = request->GetURL(); in OnBeforeBrowse()
1569 const std::string& url = request->GetURL(); in GetResourceRequestHandler()
1635 const std::string& url = request->GetURL(); in GetCookieAccessFilter()
1671 if (IsMainURL(request->GetURL())) { in OnBeforeResourceLoad()
1674 } else if (IsSubURL(request->GetURL())) { in OnBeforeResourceLoad()
1699 request->SetURL(GetURL(RESULT_JS)); in OnBeforeResourceLoad()
1714 if (IsMainURL(request->GetURL())) { in GetResourceHandler()
1717 } else if (IsSubURL(request->GetURL())) { in GetResourceHandler()
1735 const std::string& url = request->GetURL(); in GetResourceHandler()
1736 if (url == GetURL(RESULT_JS) && mode_ == RESTART_RESOURCE_RESPONSE) { in GetResourceHandler()
1746 } else if (url == GetURL(RESULT_JS)) { in GetResourceHandler()
1750 } else if (url == GetURL(REDIRECT_JS) && in GetResourceHandler()
1761 } else if (url == GetURL(REDIRECT_JS) || url == GetURL(REDIRECT2_JS)) { in GetResourceHandler()
1765 EXPECT_STREQ(GetURL(REDIRECT_JS), url.c_str()); in GetResourceHandler()
1766 redirect_url = GetURL(RESULT_JS); in GetResourceHandler()
1768 EXPECT_STREQ(GetURL(REDIRECT2_JS), url.c_str()); in GetResourceHandler()
1769 redirect_url = GetURL(REDIRECT_JS); in GetResourceHandler()
1789 if (IsMainURL(request->GetURL()) || IsSubURL(request->GetURL())) { in OnResourceRedirect()
1801 EXPECT_STREQ(GetURL(RESULT_JS), new_url.ToString().c_str()); in OnResourceRedirect()
1805 EXPECT_STREQ(GetURL(REDIRECT_JS), new_url.ToString().c_str()); in OnResourceRedirect()
1807 new_url = GetURL(RESULT_JS); in OnResourceRedirect()
1823 if (IsMainURL(request->GetURL())) { in OnResourceResponse()
1826 } else if (IsSubURL(request->GetURL())) { in OnResourceResponse()
1841 request->SetURL(GetURL(RESULT_JS)); in OnResourceResponse()
1861 if (IsMainURL(request->GetURL())) { in GetResourceResponseFilter()
1864 } else if (IsSubURL(request->GetURL())) { in GetResourceResponseFilter()
1894 if (IsMainURL(request->GetURL())) { in OnResourceLoadComplete()
1900 } else if (IsSubURL(request->GetURL())) { in OnResourceLoadComplete()
1936 if (IsMainURL(request->GetURL()) || IsSubURL(request->GetURL())) { in OnProtocolExecution()
2150 const char* GetURL(TestUrl url) const { in GetURL() function in __anon59e20f910211::SubresourceResponseTest
2173 return GetURL(RESULT_JS); in GetStartupURL()
2175 return GetURL(REDIRECT2_JS); in GetStartupURL()
2177 return GetURL(REDIRECT_JS); in GetStartupURL()
2408 EXPECT_STREQ(GetURL(RESULT_JS), request->GetURL().ToString().c_str()) in VerifyState()
2431 EXPECT_STREQ(GetStartupURL(), request->GetURL().ToString().c_str()) in VerifyState()
2435 EXPECT_STREQ(GetURL(RESULT_JS), request->GetURL().ToString().c_str()) in VerifyState()
2477 EXPECT_STREQ("", response->GetURL().ToString().c_str()) << callback; in VerifyOKResponse()
2491 EXPECT_STREQ("", response->GetURL().ToString().c_str()) << callback; in VerifyOKResponse()
2507 EXPECT_STREQ("", response->GetURL().ToString().c_str()) << callback; in VerifyRedirectResponse()
2716 EXPECT_STREQ(kResourceTestHtml, request->GetURL().ToString().c_str()); in OnBeforeBrowse()
2803 EXPECT_TRUE(CheckUrl(request->GetURL())); in OnResourceResponse()
2836 EXPECT_TRUE(CheckUrl(request->GetURL())); in OnResourceLoadComplete()
2919 const std::string& old_url = request->GetURL(); in OnResourceRedirect()
2938 const std::string& new_url = request->GetURL(); in OnRetryReceived()
3054 if (request->GetURL() == kResourceTestHtml) { in OnBeforeResourceLoad()
3083 if (request->GetURL() == kResourceTestHtml) { in GetResourceHandler()
3116 if (request->GetURL() == kResourceTestHtml) { in OnResourceResponse()
3138 if (request->GetURL() == kResourceTestHtml) { in GetResourceResponseFilter()
3167 if (request->GetURL() == kResourceTestHtml) { in OnResourceLoadComplete()
3284 const std::string& url = request->GetURL(); in OnBeforeResourceLoad()
3325 const std::string& url = frame->GetURL(); in OnLoadEnd()