#include "extensions/common/extension.h"
#include <optional>
#include <string_view>
#include "base/command_line.h"
#include "base/test/scoped_command_line.h"
#include "base/test/scoped_feature_list.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/extension_features.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/switches.h"
#include "testing/gtest/include/gtest/gtest.h"
ManifestLocation;
namespace extensions {
namespace {
std::string GetVersionTooHighWarning(int max_version, int supplied_version) { … }
testing::AssertionResult RunManifestVersionSuccess(
base::Value::Dict manifest,
Manifest::Type expected_type,
int expected_manifest_version,
std::string_view expected_warning = "",
Extension::InitFromValueFlags custom_flag = Extension::NO_FLAGS,
ManifestLocation manifest_location = ManifestLocation::kInternal) { … }
testing::AssertionResult RunManifestVersionFailure(
base::Value::Dict manifest,
Extension::InitFromValueFlags custom_flag = Extension::NO_FLAGS) { … }
testing::AssertionResult RunCreationWithFlags(
const base::Value::Dict& manifest,
mojom::ManifestLocation location,
Manifest::Type expected_type,
Extension::InitFromValueFlags custom_flag = Extension::NO_FLAGS) { … }
}
TEST(ExtensionTest, ExtensionManifestVersions) { … }
TEST(ExtensionTest, PlatformAppManifestVersions) { … }
TEST(ExtensionTest, HostedAppManifestVersions) { … }
TEST(ExtensionTest, UserScriptManifestVersions) { … }
TEST(ExtensionTest, LoginScreenFlag) { … }
}