chromium/extensions/common/extension_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

// TODO(devlin): Move tests from chrome/common/extensions/extension_unittest.cc
// that don't depend on //chrome into here.

TEST(ExtensionTest, ExtensionManifestVersions) {}

TEST(ExtensionTest, PlatformAppManifestVersions) {}

TEST(ExtensionTest, HostedAppManifestVersions) {}

TEST(ExtensionTest, UserScriptManifestVersions) {}

TEST(ExtensionTest, LoginScreenFlag) {}

}  // namespace extensions