#include "extensions/browser/extension_icon_image.h"
#include <vector>
#include "base/json/json_file_value_serializer.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "content/public/test/test_browser_context.h"
#include "extensions/browser/extensions_test.h"
#include "extensions/browser/image_loader.h"
#include "extensions/browser/test_image_loader.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_paths.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_handlers/icons_handler.h"
#include "skia/ext/image_operations.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image_skia_rep.h"
#include "ui/gfx/image/image_skia_source.h"
#include "ui/gfx/skia_util.h"
ManifestLocation;
namespace extensions {
namespace {
SkBitmap CreateBlankBitmapForScale(int size_dip,
ui::ResourceScaleFactor scale_factor) { … }
SkBitmap EnsureBitmapSize(const SkBitmap& original, int size) { … }
class MockImageSkiaSource : public gfx::ImageSkiaSource { … };
class ExtensionIconImageTest : public ExtensionsTest,
public IconImage::Observer { … };
}
TEST_F(ExtensionIconImageTest, Basic) { … }
TEST_F(ExtensionIconImageTest, FallbackToSmallerWhenNoBigger) { … }
TEST_F(ExtensionIconImageTest, FallbackToBigger) { … }
TEST_F(ExtensionIconImageTest, NoResources) { … }
TEST_F(ExtensionIconImageTest, InvalidResource) { … }
TEST_F(ExtensionIconImageTest, LazyDefaultIcon) { … }
TEST_F(ExtensionIconImageTest, LazyDefaultIcon_AsyncIconImage) { … }
TEST_F(ExtensionIconImageTest, IconImageDestruction) { … }
TEST_F(ExtensionIconImageTest, ImageCachesNewRepresentations) { … }
}