#include "extensions/common/manifest_handlers/extension_action_handler.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/strings/strcat.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "components/version_info/channel.h"
#include "extensions/common/api/extension_action/action_info.h"
#include "extensions/common/api/extension_action/action_info_test_util.h"
#include "extensions/common/constants.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_paths.h"
#include "extensions/common/features/feature_channel.h"
#include "extensions/common/file_util.h"
#include "extensions/common/icons/extension_icon_set.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_test.h"
#include "extensions/common/warnings_test_util.h"
#include "extensions/test/test_extension_dir.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
namespace {
base::FilePath GetTestDataDir() { … }
}
TEST(ExtensionActionHandlerTest, LoadInvisibleBrowserActionIconUnpacked) { … }
TEST(ExtensionActionHandlerTest, LoadInvisiblePageActionIconUnpacked) { … }
TEST(ExtensionActionHandlerTest, InvalidActionIcon_ManifestV3) { … }
ExtensionActionHandlerManifestTest;
TEST_F(ExtensionActionHandlerManifestTest, NoActionSpecified_ManifestV2) { … }
TEST_F(ExtensionActionHandlerManifestTest, NoActionSpecified_ManifestV3) { … }
class ExtensionActionManifestTest
: public ManifestTest,
public testing::WithParamInterface<ActionInfo::Type> { … };
TEST_P(ExtensionActionManifestTest, Basic) { … }
TEST_P(ExtensionActionManifestTest, TestEmptyAction) { … }
TEST_P(ExtensionActionManifestTest, ValidIconDictionary) { … }
TEST_P(ExtensionActionManifestTest, Invalid) { … }
TEST_P(ExtensionActionManifestTest, ValidDefaultPopup) { … }
TEST_P(ExtensionActionManifestTest, EmptyDefaultPopup) { … }
TEST_P(ExtensionActionManifestTest, OtherExtensionSpecifiedDefaultPopup) { … }
TEST_P(ExtensionActionManifestTest, NonexistentDefaultPopup) { … }
TEST_P(ExtensionActionManifestTest, DefaultState) { … }
INSTANTIATE_TEST_SUITE_P(…);
}