/external/chromium/chrome/browser/history/ |
D | top_sites_unittest.cc | 83 void set_urls(const MostVisitedURLList& urls) { urls_ = urls; } in set_urls() argument 84 const MostVisitedURLList& urls() const { return urls_; } in urls() function in history::__anon26d056150111::TopSitesQuerier 212 ASSERT_LE(start_index + prepopulate_urls.size(), querier.urls().size()); in ContainsPrepopulatePages() 215 querier.urls()[start_index + i].url.spec()) << " @ index " << in ContainsPrepopulatePages() 311 bool AddPrepopulatedPages(MostVisitedURLList* urls) { in AddPrepopulatedPages() argument 312 return TopSites::AddPrepopulatedPages(urls); in AddPrepopulatedPages() 366 ASSERT_EQ(2u + GetPrepopulatePages().size(), querier.urls().size()); in MigrationAssertions() 367 EXPECT_EQ(GURL("http://google.com/"), querier.urls()[0].url); in MigrationAssertions() 368 EXPECT_EQ(GURL("http://yahoo.com/"), querier.urls()[1].url); in MigrationAssertions() 605 ASSERT_EQ(2u + GetPrepopulatePages().size(), querier.urls().size()); in TEST_F() [all …]
|
D | history_browsertest.cc | 80 std::vector<GURL>& urls() { return urls_; } in urls() function in __anond98f6ed10111::HistoryEnumerator 104 return enumerator.urls(); in GetHistoryContents() 127 std::vector<GURL> urls(GetHistoryContents()); in ExpectEmptyHistory() local 128 EXPECT_EQ(0U, urls.size()); in ExpectEmptyHistory() 146 std::vector<GURL> urls(GetHistoryContents()); in IN_PROC_BROWSER_TEST_F() local 147 ASSERT_EQ(1U, urls.size()); in IN_PROC_BROWSER_TEST_F() 148 EXPECT_EQ(GetTestUrl().spec(), urls[0].spec()); in IN_PROC_BROWSER_TEST_F() 194 std::vector<GURL> urls(GetHistoryContents()); in IN_PROC_BROWSER_TEST_F() local 196 ASSERT_EQ(1U, urls.size()); in IN_PROC_BROWSER_TEST_F() 197 EXPECT_EQ(GetTestUrl().spec(), urls[0].spec()); in IN_PROC_BROWSER_TEST_F() [all …]
|
D | top_sites.cc | 274 static int IndexOf(const MostVisitedURLList& urls, const GURL& url) { in IndexOf() argument 275 for (size_t i = 0; i < urls.size(); i++) { in IndexOf() 276 if (urls[i].url == url) in IndexOf() 629 MostVisitedURLList urls; in GetPrepopulatePages() local 630 urls.resize(arraysize(kPrepopulatePageIDs)); in GetPrepopulatePages() 632 MostVisitedURL& url = urls[i]; in GetPrepopulatePages() 638 return urls; in GetPrepopulatePages() 642 bool TopSites::AddPrepopulatedPages(MostVisitedURLList* urls) { in AddPrepopulatedPages() argument 646 if (urls->size() < kTopSitesNumber && in AddPrepopulatedPages() 647 IndexOf(*urls, prepopulate_urls[i].url) == -1) { in AddPrepopulatedPages() [all …]
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
D | URLClassLoaderTest.java | 75 public URLClassLoaderExt(URL[] urls) { in URLClassLoaderExt() argument 76 super(urls); in URLClassLoaderExt() 122 URL[] urls = new URL[2]; in test_findResourcesLjava_lang_String() local 123 urls[0] = new URL(serverURL); in test_findResourcesLjava_lang_String() 124 urls[1] = new URL(serverURL + "/subdir1/"); in test_findResourcesLjava_lang_String() 125 ucl = new URLClassLoader(urls); in test_findResourcesLjava_lang_String() 152 URL[] urls = new URL[4]; in test_getURLs() local 153 urls[0] = new URL("http://" + Support_Configuration.HomeAddress); in test_getURLs() 154 urls[1] = new URL("http://" + Support_Configuration.TestResources + "/"); in test_getURLs() 155 urls[2] = new URL("ftp://" + Support_Configuration.TestResources + "/"); in test_getURLs() [all …]
|
/external/chromium/net/http/ |
D | http_auth_filter_unittest.cc | 37 static const UrlData urls[] = { variable 81 for (size_t i = 0; i < arraysize(urls); i++) { in TEST() 82 EXPECT_EQ(urls[i].target == HttpAuth::AUTH_PROXY, in TEST() 83 filter.IsValid(urls[i].url, urls[i].target)) in TEST() 84 << " " << i << ": " << urls[i].url; in TEST() 98 for (size_t i = 0; i < arraysize(urls); i++) { in TEST() 99 EXPECT_EQ(urls[i].matches, filter.IsValid(urls[i].url, urls[i].target)) in TEST() 100 << " " << i << ": " << urls[i].url; in TEST()
|
/external/webkit/Tools/MiniBrowser/qt/ |
D | main.cpp | 45 UrlLoader loader(window, app.urls().at(0), app.robotTimeout(), app.robotExtraTime()); in main() 51 QStringList urls = app.urls(); in main() local 53 if (urls.isEmpty()) { in main() 56 urls.append(QString("file://") + defaultIndexFile); in main() 58 urls.append("http://www.google.com"); in main() 66 window->load(urls.at(0)); in main() 68 for (int i = 1; i < urls.size(); ++i) in main() 69 window->newWindow(urls.at(i)); in main()
|
/external/webkit/Source/WebCore/platform/qt/ |
D | DragDataQt.cpp | 57 QList<QUrl> urls = m_platformDragData->urls(); in containsFiles() local 58 foreach (const QUrl &url, urls) { in containsFiles() 69 QList<QUrl> urls = m_platformDragData->urls(); in asFilenames() local 70 foreach (const QUrl &url, urls) { in asFilenames() 123 QList<QUrl> urls = m_platformDragData->urls(); in asURL() local 125 if (urls.isEmpty()) in asURL() 128 QByteArray encodedUrl = urls.first().toEncoded(); in asURL()
|
D | ClipboardQt.cpp | 212 QList<QUrl> urls = m_readableData->urls(); in files() local 214 for (int i = 0; i < urls.size(); i++) { in files() 215 QUrl url = urls[i]; in files() 296 QList<QUrl> urls; in declareAndWriteDragImage() local 297 urls.append(url); in declareAndWriteDragImage() 298 urls.append(fullURL); in declareAndWriteDragImage() 301 m_writableData->setUrls(urls); in declareAndWriteDragImage() 313 QList<QUrl> urls; in writeURL() local 314 urls.append(frame->document()->completeURL(url.string())); in writeURL() 317 m_writableData->setUrls(urls); in writeURL()
|
/external/chromium/chrome/browser/resources/shared/js/cr/ |
D | link_controller.js | 114 openUrls: function (urls, kind) { argument 115 if (urls.length < 1) 118 if (urls.length > this.warningLimit) { 119 if (!this.window.confirm(this.getWarningMessage(urls.length))) 126 urls = urls.map(function(url) { 133 url: urls, 138 urls.forEach(function(url, i) { 145 this.window.location.href = urls[0];
|
/external/chromium/chrome/browser/ |
D | favicon_helper_unittest.cc | 59 const std::vector<FaviconURL> urls); 63 void UpdateFaviconURL(const std::vector<FaviconURL> urls); 164 const std::vector<FaviconURL>& urls() { in urls() function in TestFaviconHelper 259 const std::vector<FaviconURL> urls) { in UpdateFaviconURL() argument 260 helper->OnUpdateFaviconURL(0, urls); in UpdateFaviconURL() 263 void DownloadHandler::UpdateFaviconURL(const std::vector<FaviconURL> urls) { in UpdateFaviconURL() argument 264 UpdateFaviconURL(favicon_helper_, urls); in UpdateFaviconURL() 309 std::vector<FaviconURL> urls; in TEST_F() local 310 urls.push_back(FaviconURL(icon_url, FaviconURL::FAVICON)); in TEST_F() 311 DownloadHandler::UpdateFaviconURL(&helper, urls); in TEST_F() [all …]
|
D | custom_home_pages_table_model.cc | 56 void CustomHomePagesTableModel::SetURLs(const std::vector<GURL>& urls) { in SetURLs() argument 57 entries_.resize(urls.size()); in SetURLs() 58 for (size_t i = 0; i < urls.size(); ++i) { in SetURLs() 59 entries_[i].url = urls[i]; in SetURLs() 124 std::vector<GURL> urls(entries_.size()); in GetURLs() local 126 urls[i] = entries_[i].url; in GetURLs() 127 return urls; in GetURLs()
|
/external/webkit/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/ |
D | LeaksLoader.js | 39 _loadLeaksFiles: function(urls) { argument 40 this._didCountLeaksFilesCallback(urls.length); 43 var pendingURLs = urls.length; 44 urls.forEach(function(url) { 60 …var urls = Array.prototype.map.call(root.querySelectorAll("tr.file > td > a[href$='-leaks.txt']"),… 62 self._loadLeaksFiles(urls);
|
/external/chromium/chrome/browser/search_engines/ |
D | search_host_to_urls_map_unittest.cc | 67 const TemplateURLSet* urls = provider_map_->GetURLsForHost(host_); in TEST_F() local 68 ASSERT_TRUE(urls != NULL); in TEST_F() 71 for (TemplateURLSet::const_iterator i = urls->begin(); in TEST_F() 72 i != urls->end(); ++i) { in TEST_F() 122 const TemplateURLSet* urls = provider_map_->GetURLsForHost(host_); in TEST_F() local 123 ASSERT_TRUE(urls != NULL); in TEST_F() 127 for (TemplateURLSet::const_iterator i = urls->begin(); in TEST_F() 128 i != urls->end(); ++i) { in TEST_F() 143 const TemplateURLSet* urls = provider_map_->GetURLsForHost("a" + host_); in TEST_F() local 144 ASSERT_TRUE(urls == NULL); in TEST_F()
|
D | template_url_prepopulate_data_unittest.cc | 79 ScopedVector<TemplateURL> urls; in TEST_F() local 82 profile.GetPrefs(), &(urls.get()), &default_index); in TEST_F() 84 for (size_t turl_i = 0; turl_i < urls.size(); ++turl_i) { in TEST_F() 85 ASSERT_TRUE(unique_ids.find(urls[turl_i]->prepopulate_id()) == in TEST_F() 87 unique_ids.insert(urls[turl_i]->prepopulate_id()); in TEST_F() 142 ScopedVector<TemplateURL> urls; in TEST_F() local 145 profile.GetPrefs(), &(urls.get()), &default_index); in TEST_F() 146 for (size_t turl_i = 0; turl_i < urls.size(); ++turl_i) { in TEST_F() 147 GURL engine_url(urls[turl_i]->url()->url()); in TEST_F() 150 urls[turl_i], search_terms_data); in TEST_F()
|
D | search_host_to_urls_map.cc | 55 TemplateURLSet& urls = host_to_urls_map_[host]; in Remove() local 56 DCHECK(urls.find(template_url) != urls.end()); in Remove() 58 urls.erase(urls.find(template_url)); in Remove() 59 if (urls.empty()) in Remove() 88 const TemplateURLSet& urls = host_map_iterator->second; in UpdateGoogleBaseURLs() local 89 for (TemplateURLSet::const_iterator url_set_iterator = urls.begin(); in UpdateGoogleBaseURLs() 90 url_set_iterator != urls.end(); ++url_set_iterator) { in UpdateGoogleBaseURLs()
|
/external/chromium/chrome/browser/prefs/ |
D | session_startup_pref_unittest.cc | 30 EXPECT_EQ(2u, result.urls.size()); in TEST_F() 31 EXPECT_EQ("http://google.com/", result.urls[0].spec()); in TEST_F() 32 EXPECT_EQ("http://chromium.org/", result.urls[1].spec()); in TEST_F() 49 EXPECT_EQ(3u, result.urls.size()); in TEST_F() 53 override_test.urls.push_back(GURL("dev.chromium.org")); in TEST_F() 57 EXPECT_EQ(3u, result.urls.size()); in TEST_F()
|
/external/chromium/chrome/browser/net/ |
D | predictor_api.cc | 40 static void DnsPrefetchMotivatedList(const UrlList& urls, 164 UrlList urls; in DnsPrefetchList() local 168 urls.push_back(GURL("http://" + *it + ":80")); in DnsPrefetchList() 172 DnsPrefetchMotivatedList(urls, UrlInfo::PAGE_SCAN_MOTIVATED); in DnsPrefetchList() 176 const UrlList& urls, in DnsPrefetchMotivatedList() argument 184 g_predictor->ResolveList(urls, motivation); in DnsPrefetchMotivatedList() 190 &Predictor::ResolveList, urls, motivation)); in DnsPrefetchMotivatedList() 406 UrlList urls = in InitNetworkPredictor() local 426 prefetching_enabled, max_dns_queue_delay, max_parallel_resolves, urls, in InitNetworkPredictor() 506 UrlList urls; in GetPredictedUrlListAtStartup() local [all …]
|
/external/chromium/chrome/browser/safe_browsing/ |
D | protocol_parser_unittest.cc | 344 std::vector<ChunkUrl> urls; in TEST() local 348 &reset, &deletes, &urls)); in TEST() 350 EXPECT_TRUE(urls.empty()); in TEST() 371 urls.clear(); in TEST() 376 &reset, &deletes, &urls)); in TEST() 393 std::vector<ChunkUrl> urls; in TEST() local 397 &reset, &deletes, &urls)); in TEST() 401 EXPECT_EQ(urls.size(), 4U); in TEST() 402 EXPECT_EQ(urls[0].url, in TEST() 404 EXPECT_EQ(urls[1].url, in TEST() [all …]
|
D | safe_browsing_database_unittest.cc | 1166 std::vector<GURL> urls(1); in TEST_F() local 1168 urls[0] = GURL(std::string("http://") + kEvil1Url1); in TEST_F() 1169 EXPECT_TRUE(database_->ContainsDownloadUrl(urls, &prefix_hits)); in TEST_F() 1173 urls[0] = GURL(std::string("http://") + kEvil1Url2); in TEST_F() 1174 EXPECT_TRUE(database_->ContainsDownloadUrl(urls, &prefix_hits)); in TEST_F() 1178 urls[0] = GURL(std::string("https://") + kEvil1Url2); in TEST_F() 1179 EXPECT_TRUE(database_->ContainsDownloadUrl(urls, &prefix_hits)); in TEST_F() 1183 urls[0] = GURL(std::string("ftp://") + kEvil1Url2); in TEST_F() 1184 EXPECT_TRUE(database_->ContainsDownloadUrl(urls, &prefix_hits)); in TEST_F() 1188 urls[0] = GURL("http://www.randomevil.com"); in TEST_F() [all …]
|
/external/webkit/Tools/QtTestBrowser/ |
D | main.cpp | 115 QStringList urls() const { return m_urls; } in urls() function in LauncherApplication 331 …UrlLoader loader(window->page()->mainFrame(), app.urls().at(0), app.robotTimeout(), app.robotExtra… in main() 337 QStringList urls = app.urls(); in main() local 339 if (urls.isEmpty()) { in main() 342 urls.append(QString("file://") + defaultIndexFile); in main() 344 urls.append(""); in main() 348 foreach (QString url, urls) { in main()
|
/external/webkit/Source/WebCore/loader/appcache/ |
D | ApplicationCache.cpp | 190 Vector<KURL> urls; in deleteCacheForOrigin() local 191 if (!cacheStorage().manifestURLs(&urls)) { in deleteCacheForOrigin() 198 size_t count = urls.size(); in deleteCacheForOrigin() 200 if (protocolHostAndPortAreEqual(urls[i], originURL)) { in deleteCacheForOrigin() 201 ApplicationCacheGroup* group = cacheStorage().findInMemoryCacheGroup(urls[i]); in deleteCacheForOrigin() 205 cacheStorage().deleteCacheGroup(urls[i]); in deleteCacheForOrigin()
|
/external/chromium/chrome/browser/importer/ |
D | safari_importer_unittest.mm | 133 EXPECT_EQ(fav0.urls.size(), 1U); 134 EXPECT_TRUE(fav0.urls.find(GURL("http://www.youtube.com/")) 135 != fav0.urls.end()); 141 EXPECT_EQ(fav1.urls.size(), 2U); 142 EXPECT_TRUE(fav1.urls.find(GURL("http://www.opensearch.org/Home")) 143 != fav1.urls.end()); 145 EXPECT_TRUE(fav1.urls.find( 147 != fav1.urls.end());
|
/external/webkit/Source/WebCore/html/ |
D | HTMLParamElement.cpp | 79 void HTMLParamElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const in addSubresourceAttributeURLs() 81 HTMLElement::addSubresourceAttributeURLs(urls); in addSubresourceAttributeURLs() 86 addSubresourceURL(urls, document()->completeURL(value())); in addSubresourceAttributeURLs()
|
/external/chromium/chrome/browser/extensions/ |
D | convert_web_app.cc | 129 ListValue* urls = new ListValue(); in ConvertWebAppToExtension() local 130 root->Set(keys::kWebURLs, urls); in ConvertWebAppToExtension() 131 for (size_t i = 0; i < web_app.urls.size(); ++i) { in ConvertWebAppToExtension() 132 urls->Append(Value::CreateStringValue(web_app.urls[i].spec())); in ConvertWebAppToExtension()
|
/external/chromium/chrome/browser/bookmarks/ |
D | bookmark_pasteboard_helper_mac.mm | 184 NSMutableArray* titles, NSMutableArray* urls) { 191 [urls addObject:url]; 193 FillFlattenedArraysForBookmarks(element.children, titles, urls); 201 NSMutableArray* urls = [NSMutableArray array]; 202 FillFlattenedArraysForBookmarks(elements, titles, urls); 204 // These bookmark types only act on urls, not folders. 205 if ([urls count] < 1) 209 [pb setPropertyList:[NSArray arrayWithObjects:urls, titles, nil] 213 [pb setString:[urls componentsJoinedByString:@"\n"] 217 NSURL* url = [NSURL URLWithString:[urls objectAtIndex:0]];
|