#include "components/favicon/content/content_favicon_driver.h"
#include <memory>
#include <vector>
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "components/favicon/core/favicon_client.h"
#include "components/favicon/core/favicon_handler.h"
#include "components/favicon/core/test/favicon_driver_impl_test_helper.h"
#include "components/favicon/core/test/mock_favicon_service.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/favicon/favicon_url.mojom.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/favicon_size.h"
namespace favicon {
namespace {
_;
Return;
SizeIs;
void TestFetchFaviconForPage(
content::WebContents* web_contents,
const GURL& page_url,
const std::vector<blink::mojom::FaviconURLPtr>& candidates) { … }
class ContentFaviconDriverTest : public content::RenderViewHostTestHarness { … };
TEST_F(ContentFaviconDriverTest, ShouldCauseImageDownload) { … }
TEST_F(ContentFaviconDriverTest, IgnoreManifestURLBeforeOnLoad) { … }
TEST_F(ContentFaviconDriverTest, UseManifestURLAFterOnLoad) { … }
TEST_F(ContentFaviconDriverTest, ShouldNotCauseImageDownload) { … }
TEST_F(ContentFaviconDriverTest, ShouldNotRequestRepeatedlyIfUnavailable) { … }
TEST_F(ContentFaviconDriverTest, ShouldDownloadSecondIfFirstUnavailable) { … }
ContentFaviconDriverTestNoFaviconService;
TEST_F(ContentFaviconDriverTestNoFaviconService,
WebContentsDeletedWithInProgressManifestRequest) { … }
}
}