chromium/chrome/browser/spellchecker/spellcheck_language_policy_handlers_unittest.cc

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

// Chromium style is to have one unit test per one header file. However, the
// applied blocked spellcheck language policy depends on the applied forced
// language policy. If a language is both blocked and forced, forced wins. It is
// only practical to test this interaction in a single unit test covering both
// header files.
#include <optional>
#include <ostream>
#include <string>
#include <vector>

#include "base/containers/contains.h"
#include "base/strings/string_util.h"
#include "base/test/scoped_feature_list.h"
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/browser/spellchecker/spellcheck_language_blocklist_policy_handler.h"
#include "chrome/browser/spellchecker/spellcheck_language_policy_handler.h"
#include "chrome/common/pref_names.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_value_map.h"
#include "components/spellcheck/browser/pref_names.h"
#include "components/spellcheck/common/spellcheck_features.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace policy {

struct TestCase {};

std::ostream& operator<<(std::ostream& out, const TestCase& test_case) {}

class SpellcheckLanguagePolicyHandlersTest
    : public testing::TestWithParam<TestCase> {};

TEST_P(SpellcheckLanguagePolicyHandlersTest, ApplyPolicySettings) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace policy