Home | History | Annotate | Download | only in browser

Lines Matching refs:FAVICON

172   // The methods to access favicon internal.
281 const GURL icon_url("http://www.google.com/favicon");
283 TestFaviconHelper helper(page_url, contents(), FaviconHelper::FAVICON);
291 EXPECT_EQ(history::FAVICON, history_handler->icon_type_);
295 history_handler->favicon_data_.icon_type = history::FAVICON;
305 EXPECT_TRUE(helper.GetEntry()->favicon().is_valid());
306 EXPECT_EQ(icon_url, helper.GetEntry()->favicon().url());
308 // Simulates update favicon url.
310 urls.push_back(FaviconURL(icon_url, FaviconURL::FAVICON));
317 ASSERT_EQ(FaviconURL::FAVICON, helper.current_candidate()->icon_type);
319 // Favicon shouldn't request to download icon.
326 const GURL icon_url("http://www.google.com/favicon");
328 TestFaviconHelper helper(page_url, contents(), FaviconHelper::FAVICON);
336 EXPECT_EQ(history::FAVICON, history_handler->icon_type_);
340 history_handler->favicon_data_.icon_type = history::FAVICON;
346 EXPECT_TRUE(helper.GetEntry()->favicon().is_valid());
347 EXPECT_EQ(icon_url, helper.GetEntry()->favicon().url());
349 // Simulates update favicon url.
351 urls.push_back(FaviconURL(icon_url, FaviconURL::FAVICON));
358 ASSERT_EQ(FaviconURL::FAVICON, helper.current_candidate()->icon_type);
360 // Favicon should request to download icon now.
367 // Reset the history_handler to verify whether favicon is set.
377 EXPECT_EQ(FaviconURL::FAVICON, history_handler->icon_type_);
382 EXPECT_EQ(icon_url, helper.GetEntry()->favicon().url());
383 EXPECT_TRUE(helper.GetEntry()->favicon().is_valid());
384 EXPECT_FALSE(helper.GetEntry()->favicon().bitmap().empty());
389 const GURL icon_url("http://www.google.com/favicon");
392 TestFaviconHelper helper(page_url, contents(), FaviconHelper::FAVICON);
400 EXPECT_EQ(history::FAVICON, history_handler->icon_type_);
404 history_handler->favicon_data_.icon_type = history::FAVICON;
414 EXPECT_TRUE(helper.GetEntry()->favicon().is_valid());
415 EXPECT_EQ(icon_url, helper.GetEntry()->favicon().url());
421 // Simulates update with the different favicon url.
423 urls.push_back(FaviconURL(new_icon_url, FaviconURL::FAVICON));
430 ASSERT_EQ(FaviconURL::FAVICON, helper.current_candidate()->icon_type);
431 // The favicon status's url should be updated.
432 ASSERT_EQ(new_icon_url, helper.GetEntry()->favicon().url());
434 // Favicon should be requested from history.
438 EXPECT_EQ(FaviconURL::FAVICON, history_handler->icon_type_);
445 // Favicon should request to download icon now.
452 // Reset the history_handler to verify whether favicon is set.
462 EXPECT_EQ(FaviconURL::FAVICON, history_handler->icon_type_);
467 EXPECT_EQ(new_icon_url, helper.GetEntry()->favicon().url());
468 EXPECT_TRUE(helper.GetEntry()->favicon().is_valid());
469 EXPECT_FALSE(helper.GetEntry()->favicon().bitmap().empty());
474 const GURL icon_url("http://www.google.com/favicon");
477 FAVICON);
485 EXPECT_EQ(history::FAVICON, history_handler->icon_type_);
489 history_handler->favicon_data_.icon_type = history::FAVICON;
499 EXPECT_TRUE(helper.GetEntry()->favicon().is_valid());
500 EXPECT_EQ(icon_url, helper.GetEntry()->favicon().url());
506 // Simulates update with the different favicon url.
508 urls.push_back(FaviconURL(new_icon_url, FaviconURL::FAVICON));
515 ASSERT_EQ(FaviconURL::FAVICON, helper.current_candidate()->icon_type);
516 // The favicon status's url should be updated.
517 ASSERT_EQ(new_icon_url, helper.GetEntry()->favicon().url());
519 // Favicon should be requested from history.
523 EXPECT_EQ(FaviconURL::FAVICON, history_handler->icon_type_);
528 history_handler->favicon_data_.icon_type = history::FAVICON;
534 // Shouldn't request download favicon
537 // Verify the favicon status.
538 EXPECT_EQ(new_icon_url, helper.GetEntry()->favicon().url());
539 EXPECT_TRUE(helper.GetEntry()->favicon().is_valid());
540 EXPECT_FALSE(helper.GetEntry()->favicon().bitmap().empty());
545 const GURL icon_url("http://www.google.com/favicon");
564 EXPECT_FALSE(helper.GetEntry()->favicon().is_valid());
565 EXPECT_EQ(GURL(), helper.GetEntry()->favicon().url());
571 // Simulates update with the different favicon url.
575 urls.push_back(FaviconURL(new_icon_url, FaviconURL::FAVICON));
586 // Favicon should be requested from history.
597 // Should request download favicon.
604 // Reset the history_handler to verify whether favicon is request from
617 // Favicon should be requested from history.
659 const GURL icon_url("http://www.google.com/favicon");
678 EXPECT_FALSE(helper.GetEntry()->favicon().is_valid());
679 EXPECT_EQ(GURL(), helper.GetEntry()->favicon().url());
685 // Simulates update with the different favicon url.
689 urls.push_back(FaviconURL(new_icon_url, FaviconURL::FAVICON));
700 // Favicon should be requested from history.
711 // Should request download favicon.
718 // Reset the history_handler to verify whether favicon is request from
736 // Reset the history_handler to verify whether favicon is request from