/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
SuggestionUtilsTest.java | 56 private void assertsUrlsEquivalent(String url1, String url2) { 57 assertTrue("Urls " + url1 + " and " + url2 + " not equal", 58 SuggestionUtils.normalizeUrl(url1).equals(SuggestionUtils.normalizeUrl(url2))); 61 private void assertsUrlsNotEquivalent(String url1, String url2) { 62 assertFalse("Urls " + url1 + " and " + url2 + " equal", 63 SuggestionUtils.normalizeUrl(url1).equals(SuggestionUtils.normalizeUrl(url2)));
|
/external/chromium/chrome/browser/tabs/ |
pinned_tab_codec_unittest.cc | 20 GURL url1("http://www.google.com"); 21 AddTab(browser(), url1); local 33 GURL url1("http://www.google.com"); 37 // AddTab inserts at index 0, so order after this is url1, url2. 38 AddTab(browser(), url1); local
|
/external/chromium/chrome/browser/ |
browser_commands_unittest.cc | 50 GURL url1("http://foo/1"); 55 AddTab(browser(), url1); local 76 ASSERT_TRUE(url1 == controller.GetEntryAtIndex(0)->url()); 87 GURL url1("http://foo/1"); 88 AddTab(browser(), url1); local 89 browser()->OpenURL(url1, GURL(), CURRENT_TAB, PageTransition::TYPED); 101 EXPECT_TRUE(browser()->profile()->GetBookmarkModel()->IsBookmarked(url1)); 106 GURL url1("http://foo/1"); 110 AddTab(browser(), url1); local 126 EXPECT_EQ(url1, browser()->GetTabContentsAt(1)->GetURL()) [all...] |
/cts/tests/tests/webkit/src/android/webkit/cts/ |
WebBackForwardListTest.java | 58 String url1 = server.getAssetUrl(TestHtmlConstants.HTML_URL1); local 62 mOnUiThread.loadUrlAndWaitForCompletion(url1); 63 checkBackForwardList(url1); 66 checkBackForwardList(url1, url2); 69 checkBackForwardList(url1, url2, url3);
|
WebViewClientTest.java | 136 String url1 = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); local 138 mOnUiThread.loadUrlAndWaitForCompletion(url1);
|
WebViewTest.java | 346 String url1 = mWebServer.getAssetUrl(TestHtmlConstants.HTML_URL1); 350 mOnUiThread.loadUrlAndWaitForCompletion(url1); 351 pollingCheckWebBackForwardList(url1, 0, 1); 376 pollingCheckWebBackForwardList(url1, 0, 3); [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldURLStreamHandlerTest.java | 35 URL url1 = new URL("ftp://test_url/test?a=b&c=%D0+%D1"); local 37 assertFalse(url1.equals(url2)); 40 assertFalse(handler.equals(url1,url2)); 43 assertFalse(handler.equals(null, url1)); 55 URL url1 = new URL("ftp://test_url/test?a=b&c=%D0+%D1"); local 56 assertNull(handler.getHostAddress(url1)); 66 URL url1 = new URL("ftp://test_url/test?a=b&c=%D0+%D1"); local 68 assertTrue(handler.hashCode(url1) != handler.hashCode(url2)); 71 assertFalse(handler.equals(url1,url2)); 81 URL url1 = new URL("ftp://localhost:21/*test") local 119 URL url1 = new URL("http:\/\/test:pwd@localhost:80\/foo\/foo1.c"); local [all...] |
/external/chromium/chrome/browser/history/ |
history_types_unittest.cc | 40 GURL url1(kURL1); 42 URLResult result1(url1, base::Time::Now()); 43 URLResult result2(url1, base::Time::Now()); 70 GURL url1(kURL1); 78 const size_t* matches = results.MatchesForURL(url1, &match_count); 93 matches = results.MatchesForURL(url1, &match_count); 103 EXPECT_FALSE(results.MatchesForURL(url1, NULL)); 109 GURL url1(kURL1); 115 results.DeleteURL(url1); 121 EXPECT_FALSE(results.MatchesForURL(url1, NULL)) [all...] |
url_database_unittest.cc | 73 const GURL url1("http://www.google.com/"); 74 URLRow url_info1(url1); 93 EXPECT_TRUE(GetRowForURL(url1, &info)); 121 // EXPECT_TRUE(db.GetURLInfo(url1, NULL) == NULL); 225 const GURL url1("http://www.google.com/"); 226 URLRow url_info1(url1); 265 ASSERT_EQ(url1, icon_mapping.page_url);
|
history_backend_unittest.cc | 96 // |url1| is the source URL and |url2| is the destination. 98 // navigation entry for |url2| has replaced that for |url1|. The possibly 99 // updated transition code of the visit records for |url1| and |url2| is 101 void AddClientRedirect(const GURL& url1, const GURL& url2, bool did_replace, 105 if (url1.is_valid()) 106 redirects.push_back(url1); 110 new HistoryAddPageArgs(url2, base::Time(), dummy_scope, 0, url1, 115 *transition1 = getTransition(url1); 698 GURL url1("http://www.cnn.com"); 713 backend_->AddVisits(url1, visits1, history::SOURCE_IE_IMPORTED) [all...] |
top_sites_unittest.cc | 552 MostVisitedURL url1; local 553 url1.url = GURL("http://asdf.com"); 554 url1.redirects.push_back(url1.url); 555 url_list.push_back(url1); 570 EXPECT_TRUE(top_sites()->SetPageThumbnail(url1.url, thumbnail, score)); 571 EXPECT_TRUE(top_sites()->GetPageThumbnail(url1.url, &result)); 1126 MostVisitedURL url, url1; local 1212 MostVisitedURL url, url1; local [all...] |
history_unittest.cc | 675 const GURL url1("http://www.google.com/url1/"); 686 history->AddPage(url1, scope, 0, GURL(), 696 EXPECT_EQ(url1, most_visited_urls_[1].url); 709 EXPECT_EQ(url1, most_visited_urls_[1].url); 724 EXPECT_EQ(url1, most_visited_urls_[2].url); 726 // Revisit url1, making it the top URL. 727 history->AddPage(url1, scope, 0, GURL(), 736 EXPECT_EQ(url1, most_visited_urls_[0].url); 755 EXPECT_EQ(url1, most_visited_urls_[0].url) [all...] |
/external/chromium/chrome/browser/bookmarks/ |
bookmark_html_writer_unittest.cc | 154 // Create test PNG representing favicon for url1. 163 // url1 169 // url1 173 // url1 182 GURL url1("http://url1"); 183 GURL url1_favicon("http://url1/icon.ico"); 193 model->AddURLWithCreationTime(f1, 0, url1_title, url1, t1); 194 profile.GetHistoryService(Profile::EXPLICIT_ACCESS)->AddPage(url1, 196 profile.GetFaviconService(Profile::EXPLICIT_ACCESS)->SetFavicon(url1, [all...] |
/external/chromium/chrome/browser/net/ |
resolve_proxy_msg_helper_unittest.cc | 87 GURL url1("http://www.google1.com/"); 99 helper_->OnResolveProxy(url1, msg1); 105 EXPECT_EQ(url1, resolver_->pending_requests()[0]->url()); 141 GURL url1("http://www.google1.com/"); 152 helper_->OnResolveProxy(url1, msg1); 163 EXPECT_EQ(url1, resolver_->pending_requests()[0]->url()); 198 GURL url1("http://www.google1.com/"); 210 helper_->OnResolveProxy(url1, msg1); 221 EXPECT_EQ(url1, resolver_->pending_requests()[0]->url());
|
url_info_unittest.cc | 30 GURL url1("http://domain1.com:80"), url2("https://domain2.com:443"); 43 info.SetUrl(url1);
|
/external/chromium/chrome/browser/prerender/ |
prerender_manager_unittest.cc | 217 GURL url1("http://news.google.com/"); 219 new DummyPrerenderContents(prerender_manager_.get(), url1, 222 EXPECT_TRUE(prerender_manager_->AddSimplePreload(url1)); 226 ASSERT_EQ(pc1, prerender_manager_->GetEntry(url1)); 244 GURL url1("http://news.google.com/"); 246 new DummyPrerenderContents(prerender_manager_.get(), url1, 249 EXPECT_TRUE(prerender_manager_->AddSimplePreload(url1)); 261 ASSERT_EQ(pc1, prerender_manager_->GetEntry(url1)); 319 GURL url1("http://news.google.com/"); 321 new DummyPrerenderContents(prerender_manager_.get(), url1, [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_webnavigation_unittest.cc | 25 const GURL url1("http://www.google.com/"); 30 navigation_state.TrackFrame(frame_id1, url1, true, false, contents()); 40 EXPECT_EQ(url1, navigation_state.GetUrl(frame_id1));
|
extension_updater_unittest.cc | 640 GURL url1("http://localhost/manifest1"); 645 ManifestFetchData* fetch1 = new ManifestFetchData(url1); 659 fetcher, url1, net::URLRequestStatus(), 200, ResponseCookies(), 828 GURL url1("http://localhost/extension1.crx"); 840 updater.FetchUpdatedExtension(id1, url1, hash1, version1); 849 fetcher, url1, net::URLRequestStatus(), 200, ResponseCookies(), 857 EXPECT_EQ(url1, service.download_url()); [all...] |
/external/chromium/chrome/browser/tab_contents/ |
web_contents_unittest.cc | 584 const GURL url1("chrome://newtab"); 585 controller().LoadURL(url1, GURL(), PageTransition::TYPED); 588 InitNavigateParams(¶ms1, 1, url1); 595 EXPECT_EQ(url1, entry1->url()); 670 EXPECT_EQ(url1, entry1->url()); [all...] |
/external/chromium/chrome/browser/search_engines/ |
template_url_model.cc | 871 static bool TemplateURLsHaveSamePrefs(const TemplateURL* url1, 873 if (url1 == url2) 875 return NULL != url1 && 877 url1->short_name() == url2->short_name() && 878 url1->keyword() == url2->keyword() && 879 TemplateURLRef::SameUrlRefs(url1->url(), url2->url()) & [all...] |
/external/chromium/chrome/browser/sessions/ |
session_restore_browsertest.cc | 111 GURL url1(ui_test_utils::GetTestUrl( 122 ui_test_utils::NavigateToURL(browser(), url1); local
|
/external/chromium/net/base/ |
registry_controlled_domain_unittest.cc | 74 bool CompareDomains(const std::string& url1, const std::string& url2) { 75 GURL g1 = GURL(url1);
|
/external/chromium/net/tools/dump_cache/ |
url_to_filename_encoder_unittest.cc | 113 void ValidateEncodeSame(const string& url1, const string& url2) { 114 string filename1 = UrlToFilenameEncoder::Encode(url1, "", false);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
URLClassLoaderTest.java | 258 URL url1 = (URL) en.nextElement(); local 261 && url1.equals(new URL("jar:file:/" 426 URL url1 = new URL("file:///"); local 427 URLClassLoader loader = new URLClassLoader(new URL[] { url1 }, null);
|
/external/chromium/chrome/browser/ui/toolbar/ |
back_forward_menu_model_unittest.cc | 512 GURL url1 = GURL("http://www.a.com/1"); local 516 NavigateAndCommit(url1); 517 // Navigate to a new URL so that url1 will be in the BackForwardMenuModel. 520 // Set the desired favicon for url1. 521 profile()->GetHistoryService(Profile::EXPLICIT_ACCESS)->AddPage(url1, 523 profile()->GetFaviconService(Profile::EXPLICIT_ACCESS)->SetFavicon(url1,
|