#include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h"
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_utils.h"
#include "net/base/load_flags.h"
#include "net/http/http_status_code.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/referrer_policy.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/skia_util.h"
const bool kAsyncCall = …;
const bool kSyncCall = …;
const char kStartTestURL[] = …;
const char kOnImageDecodedTestURL[] = …;
const char kOnURLFetchFailureTestURL[] = …;
BasicHttpResponse;
HttpRequest;
HttpResponse;
class BitmapFetcherTestDelegate : public BitmapFetcherDelegate { … };
class BitmapFetcherBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, StartTest) { … }
IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, OnImageDecodedTest) { … }
IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, OnURLFetchFailureTest) { … }
IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, HandleImageFailedTest) { … }
IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, DataURLNonImage) { … }
IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest, DataURLImage) { … }
IN_PROC_BROWSER_TEST_F(BitmapFetcherBrowserTest,
FetcherDeletedBeforeDataURLImageResponse) { … }
class BitmapFetcherInitiatorBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(BitmapFetcherInitiatorBrowserTest, SameOrigin) { … }