Home
last modified time | relevance | path

Searched refs:url1 (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium/chrome/browser/
Dbrowser_commands_unittest.cc50 GURL url1("http://foo/1"); in TEST_F() local
55 AddTab(browser(), url1); in TEST_F()
76 ASSERT_TRUE(url1 == controller.GetEntryAtIndex(0)->url()); in TEST_F()
87 GURL url1("http://foo/1"); in TEST_F() local
88 AddTab(browser(), url1); in TEST_F()
89 browser()->OpenURL(url1, GURL(), CURRENT_TAB, PageTransition::TYPED); in TEST_F()
101 EXPECT_TRUE(browser()->profile()->GetBookmarkModel()->IsBookmarked(url1)); in TEST_F()
106 GURL url1("http://foo/1"); in TEST_F() local
110 AddTab(browser(), url1); in TEST_F()
126 EXPECT_EQ(url1, browser()->GetTabContentsAt(1)->GetURL()); in TEST_F()
[all …]
/external/chromium/chrome/browser/history/
Dhistory_types_unittest.cc40 GURL url1(kURL1); in AddSimpleData() local
42 URLResult result1(url1, base::Time::Now()); in AddSimpleData()
43 URLResult result2(url1, base::Time::Now()); in AddSimpleData()
70 GURL url1(kURL1); in TEST() local
78 const size_t* matches = results.MatchesForURL(url1, &match_count); in TEST()
93 matches = results.MatchesForURL(url1, &match_count); in TEST()
103 EXPECT_FALSE(results.MatchesForURL(url1, NULL)); in TEST()
109 GURL url1(kURL1); in TEST() local
115 results.DeleteURL(url1); in TEST()
121 EXPECT_FALSE(results.MatchesForURL(url1, NULL)); in TEST()
[all …]
Dhistory_backend_unittest.cc101 void AddClientRedirect(const GURL& url1, const GURL& url2, bool did_replace, in AddClientRedirect() argument
105 if (url1.is_valid()) in AddClientRedirect()
106 redirects.push_back(url1); in AddClientRedirect()
110 new HistoryAddPageArgs(url2, base::Time(), dummy_scope, 0, url1, in AddClientRedirect()
115 *transition1 = getTransition(url1); in AddClientRedirect()
698 GURL url1("http://www.cnn.com"); in TEST_F() local
713 backend_->AddVisits(url1, visits1, history::SOURCE_IE_IMPORTED); in TEST_F()
719 URLID id = backend_->db()->GetRowForURL(url1, &row); in TEST_F()
739 GURL url1("http://www.cnn.com"); in TEST_F() local
753 backend_->AddVisits(url1, visits1, history::SOURCE_IE_IMPORTED); in TEST_F()
[all …]
Durl_database_unittest.cc73 const GURL url1("http://www.google.com/"); in TEST_F() local
74 URLRow url_info1(url1); in TEST_F()
93 EXPECT_TRUE(GetRowForURL(url1, &info)); in TEST_F()
225 const GURL url1("http://www.google.com/"); in TEST_F() local
226 URLRow url_info1(url1); in TEST_F()
265 ASSERT_EQ(url1, icon_mapping.page_url); in TEST_F()
Dtop_sites_unittest.cc552 MostVisitedURL url1; in TEST_F() local
553 url1.url = GURL("http://asdf.com"); in TEST_F()
554 url1.redirects.push_back(url1.url); in TEST_F()
555 url_list.push_back(url1); in TEST_F()
570 EXPECT_TRUE(top_sites()->SetPageThumbnail(url1.url, thumbnail, score)); in TEST_F()
571 EXPECT_TRUE(top_sites()->GetPageThumbnail(url1.url, &result)); in TEST_F()
1126 MostVisitedURL url, url1; in TEST_F() local
1130 url1.url = GURL("http://google.com/"); in TEST_F()
1131 url1.redirects.push_back(url1.url); in TEST_F()
1132 pages.push_back(url1); in TEST_F()
[all …]
Dhistory_unittest.cc675 const GURL url1("http://www.google.com/url1/"); in TEST_F() local
686 history->AddPage(url1, scope, 0, GURL(), in TEST_F()
696 EXPECT_EQ(url1, most_visited_urls_[1].url); in TEST_F()
709 EXPECT_EQ(url1, most_visited_urls_[1].url); in TEST_F()
724 EXPECT_EQ(url1, most_visited_urls_[2].url); in TEST_F()
727 history->AddPage(url1, scope, 0, GURL(), in TEST_F()
736 EXPECT_EQ(url1, most_visited_urls_[0].url); in TEST_F()
755 EXPECT_EQ(url1, most_visited_urls_[0].url); in TEST_F()
/external/chromium/chrome/browser/bookmarks/
Dbookmark_html_writer_unittest.cc182 GURL url1("http://url1"); in TEST_F() local
193 model->AddURLWithCreationTime(f1, 0, url1_title, url1, t1); in TEST_F()
194 profile.GetHistoryService(Profile::EXPLICIT_ACCESS)->AddPage(url1, in TEST_F()
196 profile.GetFaviconService(Profile::EXPLICIT_ACCESS)->SetFavicon(url1, in TEST_F()
204 model->AddURLWithCreationTime(model->other_node(), 0, url1_title, url1, t1); in TEST_F()
208 model->AddURLWithCreationTime(f4, 0, url1_title, url1, t1); in TEST_F()
219 profile.GetFaviconService(Profile::EXPLICIT_ACCESS)->SetFavicon(url1, in TEST_F()
240 std::set<GURL>::const_iterator iter = favicons[i].urls.find(url1); in TEST_F()
242 ASSERT_TRUE(*iter == url1); in TEST_F()
252 AssertBookmarkEntryEquals(parsed_bookmarks[0], false, url1, url1_title, t1, in TEST_F()
[all …]
/external/chromium/chrome/browser/tabs/
Dpinned_tab_codec_unittest.cc20 GURL url1("http://www.google.com"); in TEST_F() local
21 AddTab(browser(), url1); in TEST_F()
33 GURL url1("http://www.google.com"); in TEST_F() local
38 AddTab(browser(), url1); in TEST_F()
/external/chromium/chrome/browser/net/
Dresolve_proxy_msg_helper_unittest.cc87 GURL url1("http://www.google1.com/"); in TEST_F() local
99 helper_->OnResolveProxy(url1, msg1); in TEST_F()
105 EXPECT_EQ(url1, resolver_->pending_requests()[0]->url()); in TEST_F()
141 GURL url1("http://www.google1.com/"); in TEST_F() local
152 helper_->OnResolveProxy(url1, msg1); in TEST_F()
163 EXPECT_EQ(url1, resolver_->pending_requests()[0]->url()); in TEST_F()
198 GURL url1("http://www.google1.com/"); in TEST_F() local
210 helper_->OnResolveProxy(url1, msg1); in TEST_F()
221 EXPECT_EQ(url1, resolver_->pending_requests()[0]->url()); in TEST_F()
Durl_info_unittest.cc30 GURL url1("http://domain1.com:80"), url2("https://domain2.com:443"); in TEST() local
43 info.SetUrl(url1); in TEST()
/external/chromium/chrome/browser/tab_contents/
Dweb_contents_unittest.cc584 const GURL url1("chrome://newtab"); in TEST_F() local
585 controller().LoadURL(url1, GURL(), PageTransition::TYPED); in TEST_F()
588 InitNavigateParams(&params1, 1, url1); in TEST_F()
595 EXPECT_EQ(url1, entry1->url()); in TEST_F()
670 EXPECT_EQ(url1, entry1->url()); in TEST_F()
883 GURL url1("http://www.google.com"); in TEST_F() local
884 rvh()->SendNavigate(1, url1); in TEST_F()
921 EXPECT_TRUE(entry->url() == url1); in TEST_F()
931 GURL url1("http://www.google.com"); in TEST_F() local
932 rvh()->SendNavigate(1, url1); in TEST_F()
[all …]
/external/chromium/chrome/browser/prerender/
Dprerender_manager_unittest.cc217 GURL url1("http://news.google.com/"); in TEST_F() local
219 new DummyPrerenderContents(prerender_manager_.get(), url1, in TEST_F()
222 EXPECT_TRUE(prerender_manager_->AddSimplePreload(url1)); in TEST_F()
226 ASSERT_EQ(pc1, prerender_manager_->GetEntry(url1)); in TEST_F()
244 GURL url1("http://news.google.com/"); in TEST_F() local
246 new DummyPrerenderContents(prerender_manager_.get(), url1, in TEST_F()
249 EXPECT_TRUE(prerender_manager_->AddSimplePreload(url1)); in TEST_F()
261 ASSERT_EQ(pc1, prerender_manager_->GetEntry(url1)); in TEST_F()
319 GURL url1("http://news.google.com/"); in TEST_F() local
321 new DummyPrerenderContents(prerender_manager_.get(), url1, in TEST_F()
[all …]
/external/chromium/chrome/browser/extensions/
Dextension_webnavigation_unittest.cc25 const GURL url1("http://www.google.com/"); in TEST_F() local
30 navigation_state.TrackFrame(frame_id1, url1, true, false, contents()); in TEST_F()
40 EXPECT_EQ(url1, navigation_state.GetUrl(frame_id1)); in TEST_F()
Dextension_updater_unittest.cc640 GURL url1("http://localhost/manifest1"); in TestMultipleManifestDownloading() local
645 ManifestFetchData* fetch1 = new ManifestFetchData(url1); in TestMultipleManifestDownloading()
659 fetcher, url1, net::URLRequestStatus(), 200, ResponseCookies(), in TestMultipleManifestDownloading()
828 GURL url1("http://localhost/extension1.crx"); in TestMultipleExtensionDownloading() local
840 updater.FetchUpdatedExtension(id1, url1, hash1, version1); in TestMultipleExtensionDownloading()
849 fetcher, url1, net::URLRequestStatus(), 200, ResponseCookies(), in TestMultipleExtensionDownloading()
857 EXPECT_EQ(url1, service.download_url()); in TestMultipleExtensionDownloading()
903 GURL url1("http://clients2.google.com/service/update2/crx"); in TestGalleryRequests() local
905 service.CreateTestExtensions(1, 1, &tmp, &url1.possibly_invalid_spec(), in TestGalleryRequests()
961 if (fetched_urls[0].host() == url1.host()) { in TestGalleryRequests()
/external/chromium/chrome/browser/search_engines/
Dtemplate_url_model.cc871 static bool TemplateURLsHaveSamePrefs(const TemplateURL* url1, in TemplateURLsHaveSamePrefs() argument
873 if (url1 == url2) in TemplateURLsHaveSamePrefs()
875 return NULL != url1 && in TemplateURLsHaveSamePrefs()
877 url1->short_name() == url2->short_name() && in TemplateURLsHaveSamePrefs()
878 url1->keyword() == url2->keyword() && in TemplateURLsHaveSamePrefs()
879 TemplateURLRef::SameUrlRefs(url1->url(), url2->url()) && in TemplateURLsHaveSamePrefs()
880 TemplateURLRef::SameUrlRefs(url1->suggestions_url(), in TemplateURLsHaveSamePrefs()
882 url1->GetFaviconURL() == url2->GetFaviconURL() && in TemplateURLsHaveSamePrefs()
883 url1->safe_for_autoreplace() == url2->safe_for_autoreplace() && in TemplateURLsHaveSamePrefs()
884 url1->show_in_default_list() == url2->show_in_default_list() && in TemplateURLsHaveSamePrefs()
[all …]
/external/chromium/chrome/browser/sessions/
Dsession_restore_browsertest.cc111 GURL url1(ui_test_utils::GetTestUrl( in IN_PROC_BROWSER_TEST_F() local
122 ui_test_utils::NavigateToURL(browser(), url1); in IN_PROC_BROWSER_TEST_F()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DURLClassLoaderTest.java258 URL url1 = (URL) en.nextElement(); in test_findClassLjava_lang_String() local
261 && url1.equals(new URL("jar:file:/" in test_findClassLjava_lang_String()
426 URL url1 = new URL("file:///"); in test_getResourceLjava_lang_String() local
427 URLClassLoader loader = new URLClassLoader(new URL[] { url1 }, null); in test_getResourceLjava_lang_String()
DURLTest.java719 URL url1 = new URL("file:///anyfile"); in test_sameFileLjava_net_URL() local
721 assertTrue(url1.sameFile(url2)); in test_sameFileLjava_net_URL()
723 url1 = new URL("http:///anyfile"); in test_sameFileLjava_net_URL()
725 assertFalse(url1.sameFile(url2)); in test_sameFileLjava_net_URL()
727 url1 = new URL("ftp:///anyfile"); in test_sameFileLjava_net_URL()
729 assertFalse(url1.sameFile(url2)); in test_sameFileLjava_net_URL()
731 url1 = new URL("jar:file:///anyfile.jar!/"); in test_sameFileLjava_net_URL()
733 assertFalse(url1.sameFile(url2)); in test_sameFileLjava_net_URL()
/external/chromium/chrome/browser/ui/toolbar/
Dback_forward_menu_model_unittest.cc512 GURL url1 = GURL("http://www.a.com/1"); in TEST_F() local
516 NavigateAndCommit(url1); in TEST_F()
521 profile()->GetHistoryService(Profile::EXPLICIT_ACCESS)->AddPage(url1, in TEST_F()
523 profile()->GetFaviconService(Profile::EXPLICIT_ACCESS)->SetFavicon(url1, in TEST_F()
/external/chromium/net/base/
Dregistry_controlled_domain_unittest.cc74 bool CompareDomains(const std::string& url1, const std::string& url2) { in CompareDomains() argument
75 GURL g1 = GURL(url1); in CompareDomains()
/external/chromium/net/tools/dump_cache/
Durl_to_filename_encoder_unittest.cc113 void ValidateEncodeSame(const string& url1, const string& url2) { in ValidateEncodeSame() argument
114 string filename1 = UrlToFilenameEncoder::Encode(url1, "", false); in ValidateEncodeSame()
/external/webkit/Tools/DumpRenderTree/cf/
DWebArchiveDumpSupport.cpp150 …CFStringRef url1 = static_cast<CFStringRef>(CFDictionaryGetValue(static_cast<CFDictionaryRef>(val1… in compareResourceURLs() local
153 return CFStringCompare(url1, url2, kCFCompareAnchored); in compareResourceURLs()
/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_database_unittest.cc85 const std::string& url1, in InsertAddChunkHost2PrefixUrls() argument
93 host.entry->SetPrefixAt(0, Sha256Prefix(url1)); in InsertAddChunkHost2PrefixUrls()
102 const std::string& url1, in InsertAddChunkHost2FullHashes() argument
110 host.entry->SetFullHashAt(0, Sha256Hash(url1)); in InsertAddChunkHost2FullHashes()
151 const std::string& url1, in InsertSubChunkHost2PrefixUrls() argument
159 host.entry->SetPrefixAt(0, Sha256Prefix(url1)); in InsertSubChunkHost2PrefixUrls()
171 const std::string& url1, in InsertSubChunkHost2FullHashes() argument
179 host.entry->SetFullHashAt(0, Sha256Hash(url1)); in InsertSubChunkHost2FullHashes()
/external/webkit/Source/WebKit/chromium/tests/
DKURLTest.cpp606 WebCore::KURL url1(WebCore::ParsedURLString, "foo://bar"); in TEST() local
607 EXPECT_TRUE(url1.protocolIs("foo")); in TEST()
608 EXPECT_FALSE(url1.protocolIs("foo-bar")); in TEST()
/external/chromium/chrome/browser/ssl/
Dssl_browser_tests.cc769 GURL url1 = https_server_expired_.GetURL("server-redirect?"); in IN_PROC_BROWSER_TEST_F() local
772 ui_test_utils::NavigateToURL(browser(), GURL(url1.spec() + url2.spec())); in IN_PROC_BROWSER_TEST_F()
791 GURL url1 = https_server_.GetURL("server-redirect?"); in IN_PROC_BROWSER_TEST_F() local
793 ui_test_utils::NavigateToURL(browser(), GURL(url1.spec() + url2.spec())); in IN_PROC_BROWSER_TEST_F()

12