#include "extensions/browser/extension_action_icon_factory.h"
#include <memory>
#include <utility>
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/json/json_file_value_serializer.h"
#include "base/memory/raw_ptr.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/browser/extension_action.h"
#include "extensions/browser/extension_action_manager.h"
#include "extensions/common/extension.h"
#include "extensions/common/image_util.h"
#include "extensions/grit/extensions_browser_resources.h"
#include "skia/ext/image_operations.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/image/image_skia_rep.h"
#include "ui/gfx/skia_util.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/login/users/chrome_user_manager_impl.h"
#include "chrome/browser/ash/settings/scoped_cros_settings_test_helper.h"
#include "components/user_manager/scoped_user_manager.h"
#endif
ManifestLocation;
namespace extensions {
namespace {
bool ImageRepsAreEqual(const gfx::ImageSkiaRep& image_rep1,
const gfx::ImageSkiaRep& image_rep2) { … }
gfx::Image EnsureImageSize(const gfx::Image& original, int size) { … }
gfx::ImageSkiaRep CreateBlankRep(int size_dip, float scale) { … }
gfx::Image LoadIcon(const std::string& filename) { … }
class ExtensionActionIconFactoryTest
: public testing::Test,
public ExtensionActionIconFactory::Observer { … };
TEST_F(ExtensionActionIconFactoryTest, NoIcons) { … }
TEST_F(ExtensionActionIconFactoryTest, InvisibleIcon) { … }
TEST_F(ExtensionActionIconFactoryTest, AfterSetIcon) { … }
TEST_F(ExtensionActionIconFactoryTest, DefaultIcon) { … }
}
}