Home | History | Annotate | Download | only in glue

Lines Matching defs:favicon

69     scoped_refptr<base::RefCountedMemory> favicon;
70 if (!cache->GetSyncedFaviconForPageURL(gurl, &favicon))
72 if (favicon->size() != expected_bytes.size())
74 for (size_t i = 0; i < favicon->size(); ++i) {
75 if (expected_bytes[i] != *(favicon->front() + i))
460 // Create tab specifics with an empty favicon. Ensure it gets ignored and not
461 // stored into the synced favicon lookups.
463 std::string favicon;
464 std::string favicon_url = "http://www.faviconurl.com/favicon.ico";
467 tab.set_favicon(favicon);
479 // Create tab specifics with a non-web favicon. Ensure it gets ignored and not
480 // stored into the synced favicon lookups.
482 std::string favicon = "icon bytes";
483 std::string favicon_url = "http://www.faviconurl.com/favicon.ico";
486 tab.set_favicon(favicon);
488 // Set favicon type to an unsupported value (1 == WEB_FAVICON).
499 // Create tab specifics with a valid favicon. Ensure it gets stored in the
500 // synced favicon lookups and is accessible by the page url.
502 std::string favicon = "icon bytes";
503 std::string favicon_url = "http://www.faviconurl.com/favicon.ico";
506 tab.set_favicon(favicon);
515 EXPECT_TRUE(FaviconEquals(GURL(page_url), favicon));
518 // Create tab specifics with a valid favicon, load it, then load tab specifics
519 // with a new favicon for the same favicon source but different page. Ensure the
520 // old favicon remains.
522 std::string favicon_url = "http://www.faviconurl.com/favicon.ico";
524 std::string favicon = "icon bytes";
527 tab.set_favicon(favicon);
536 EXPECT_TRUE(FaviconEquals(GURL(page_url), favicon));
538 // Now have a new page with same favicon source but newer favicon data.
549 // The new page should be mapped to the old favicon data.
552 EXPECT_TRUE(FaviconEquals(GURL(page_url), favicon));
553 EXPECT_TRUE(FaviconEquals(GURL(page_url2), favicon));