#include <optional>
#include "base/test/bind.h"
#include "extensions/common/extensions_client.h"
#include "extensions/common/features/complex_feature.h"
#include "extensions/common/features/feature.h"
#include "extensions/common/features/feature_provider.h"
#include "extensions/common/features/simple_feature.h"
#include "extensions/common/mojom/context_type.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "tools/json_schema_compiler/test/features_compiler_test.h"
namespace extensions {
namespace {
template <typename T>
void ExpectVectorsEqual(std::vector<T> expected,
std::vector<T> actual,
const std::string& name) { … }
template <typename T>
void ExpectOptionalVectorsEqual(const std::optional<std::vector<T>>& expected,
const std::optional<std::vector<T>>& actual,
const std::string& name) { … }
const bool kDefaultAutoGrant = …;
const bool kDefaultInternal = …;
const bool kDefaultRequiresDelegatedAvailabilityCheck = …;
}
struct FeatureComparator { … };
FeatureComparator::FeatureComparator(const std::string& name)
: … { … }
FeatureComparator::~FeatureComparator() = default;
void FeatureComparator::CompareFeature(const SimpleFeature* feature) { … }
TEST(FeaturesGenerationTest, FeaturesTest) { … }
}