chromium/components/user_education/webui/whats_new_registry_unittest.cc

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

#include "components/user_education/webui/whats_new_registry.h"

#include <memory>

#include "base/feature_list.h"
#include "base/test/scoped_feature_list.h"
#include "components/user_education/common/user_education_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/interaction/expect_call_in_scope.h"

Return;
WhatsNewEdition;
WhatsNewModule;
WhatsNewRegistry;
WhatsNewStorageService;

namespace user_education {

namespace {

BrowserCommand;

// Modules
// Enabled through feature list.
BASE_FEATURE();
// Disabled through feature list.
BASE_FEATURE();
// Enabled by default.
BASE_FEATURE();
// Disabled by default.
BASE_FEATURE();

// Editions
// Enabled through feature list.
BASE_FEATURE();
// Enabled through feature list.
BASE_FEATURE();
// Disabled by default.
BASE_FEATURE();
// Previously used edition, enabled by default, unregistered.
BASE_FEATURE();

class MockWhatsNewStorageService : public whats_new::WhatsNewStorageService {};

}  // namespace

class WhatsNewRegistryTest : public testing::Test {};

TEST_F(WhatsNewRegistryTest, CommandsAreActiveForEnabledFeatures) {}

TEST_F(WhatsNewRegistryTest, CommandsAreActiveForEnabledModulesAndEditions) {}

TEST_F(WhatsNewRegistryTest, FindModulesForActiveFeatures) {}

TEST_F(WhatsNewRegistryTest, FindModulesForActiveFeaturesWithEditions) {}

TEST_F(WhatsNewRegistryTest, FindModulesForActiveFeaturesWithUsedEdition) {}

TEST_F(WhatsNewRegistryTest, FindModulesForRolledFeatures) {}

TEST_F(WhatsNewRegistryTest, SetEditionUsed) {}

TEST_F(WhatsNewRegistryTest, ClearUnregisteredModules) {}

TEST_F(WhatsNewRegistryTest, ClearUnregisteredEditions) {}

TEST_F(WhatsNewRegistryTest, ResetStorageService) {}

}  // namespace user_education