chromium/chrome/browser/new_tab_page/modules/new_tab_page_modules_unittest.cc

// Copyright 2022 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/browser/new_tab_page/modules/new_tab_page_modules.h"

#include <algorithm>
#include <string>
#include <utility>
#include <vector>

#include "base/command_line.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "chrome/browser/new_tab_page/modules/modules_switches.h"
#include "chrome/browser/new_tab_page/modules/test_support.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/testing_profile.h"
#include "components/search/ntp_features.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "components/sync/test/test_sync_service.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

std::unique_ptr<KeyedService> CreateTestSyncService(
    bool has_sync_enabled,
    content::BrowserContext* context) {}

std::unique_ptr<TestingProfile> MakeTestingProfile(bool has_sync_enabled) {}

}  // namespace

class NewTabPageModulesTest : public testing::Test {};

TEST_F(NewTabPageModulesTest, MakeModuleIdNames_SingleModuleEnabled) {}

TEST_F(NewTabPageModulesTest, MakeModuleIdNames_WithDriveModule) {}

TEST_F(NewTabPageModulesTest, MakeModuleIdNames_Managed) {}

TEST_F(NewTabPageModulesTest, MakeModuleIdNames_NotManaged) {}

#if !defined(OFFICIAL_BUILD)
TEST_F(NewTabPageModulesTest, MakeModuleIdNames_DummyModules) {}
#endif

const char kSampleUserEmail[] =;
const std::vector<std::pair<const std::string, int>> kSampleModules =;

TEST_F(NewTabPageModulesTest, HasModulesEnabled_SignedInAccount) {}

TEST_F(NewTabPageModulesTest,
       HasModulesEnabled_SignedInAccountNtpModulesLoadFlag) {}

TEST_F(NewTabPageModulesTest, HasModulesEnabled_NoSignedInAccount) {}

TEST_F(NewTabPageModulesTest,
       HasModulesEnabled_NoSignedInAccountSignedOutModulesSwitch) {}