chromium/chrome/common/extensions/manifest_handlers/settings_overrides_handler_unittest.cc

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

#include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.h"

#include <memory>
#include <string_view>

#include "base/json/json_string_value_serializer.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "build/build_config.h"
#include "components/version_info/version_info.h"
#include "extensions/common/error_utils.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_url_handlers.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

const char kManifest[] =;

const char kPrepopulatedManifest[] =;

const char kBrokenManifestEmpty[] =;

const char kBrokenManifestHomepage[] =;

const char kBrokenManifestStartupPages[] =;

const char kManifestBrokenHomepageButCorrectStartupPages[] =;

const char kManifestBrokenStartupPagesButCorrectHomepage[] =;

Extension;
Manifest;
SettingsOverrides;
ChromeSettingsOverrides;
manifest_keys;

scoped_refptr<Extension> CreateExtension(const base::Value::Dict& manifest,
                                         std::string* error) {}

scoped_refptr<Extension> CreateExtension(std::string_view manifest,
                                         std::string* error) {}

scoped_refptr<Extension> CreateExtensionWithSearchProvider(
    base::Value::Dict search_provider,
    std::string* error) {}

TEST(OverrideSettingsTest, ParseManifest) {}

TEST(OverrideSettingsTest, ParsePrepopulatedId) {}

TEST(OverrideSettingsTest, ParseManifestBrokenHomepageButCorrectStartupPages) {}

TEST(OverrideSettingsTest, ParseManifestBrokenStartupPagesButCorrectHomepage) {}

TEST(OverrideSettingsTest, ParseBrokenManifestEmptySettingsOverride) {}

TEST(OverrideSettingsTest, ParseBrokenManifestHomepage) {}

TEST(OverrideSettingsTest, ParseBrokenManifestStartupPages) {}

TEST(OverrideSettingsTest, SearchProviderMissingKeys) {}

}  // namespace