#include "chrome/browser/extensions/api/declarative_content/content_action.h"
#include <stdint.h>
#include "base/base64.h"
#include "base/run_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/values_test_util.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_service_test_base.h"
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/extensions/test_extension_environment.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/extension_action.h"
#include "extensions/browser/extension_action_manager.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/user_script_manager.h"
#include "extensions/common/api/declarative/declarative_constants.h"
#include "extensions/common/api/extension_action/action_info.h"
#include "extensions/common/api/extension_action/action_info_test_util.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "mojo/public/cpp/base/big_buffer.h"
#include "skia/public/mojom/bitmap.mojom.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/image/image.h"
namespace extensions {
namespace {
ParseJson;
ParseJsonDict;
HasSubstr;
ContentActionType;
ManifestLocation;
base::Value::Dict SimpleManifest() { … }
class RequestContentScriptTest : public ExtensionServiceTestBase { … };
TEST(DeclarativeContentActionTest, InvalidCreation) { … }
TEST(DeclarativeContentActionTest, ShowActionWithoutAction) { … }
class ParameterizedDeclarativeContentActionTest
: public ::testing::TestWithParam<ActionInfo::Type> { … };
TEST_P(ParameterizedDeclarativeContentActionTest, ShowAction) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST(DeclarativeContentActionTest, SetIcon) { … }
TEST(DeclarativeContentActionTest, SetInvisibleIcon) { … }
TEST_F(RequestContentScriptTest, MissingScripts) { … }
TEST_F(RequestContentScriptTest, CSS) { … }
TEST_F(RequestContentScriptTest, JS) { … }
TEST_F(RequestContentScriptTest, CSSBadType) { … }
TEST_F(RequestContentScriptTest, JSBadType) { … }
TEST_F(RequestContentScriptTest, AllFrames) { … }
TEST_F(RequestContentScriptTest, MatchAboutBlank) { … }
TEST_F(RequestContentScriptTest, AllFramesBadType) { … }
TEST_F(RequestContentScriptTest, MatchAboutBlankBadType) { … }
}
}