#include "chrome/browser/new_tab_page/new_tab_page_util.h"
#include <string>
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service.h"
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/scoped_browser_locale.h"
#include "components/optimization_guide/core/optimization_guide_logger.h"
#include "components/optimization_guide/core/optimization_guide_switches.h"
#include "components/search/ntp_features.h"
#include "components/variations/service/variations_service.h"
#include "components/variations/variations_switches.h"
#include "content/public/test/browser_test.h"
#include "testing/gmock/include/gmock/gmock.h"
class NewTabPageUtilBrowserTest : public InProcessBrowserTest { … };
class NewTabPageUtilEnableFlagBrowserTest : public NewTabPageUtilBrowserTest { … };
class NewTabPageUtilDisableFlagBrowserTest : public NewTabPageUtilBrowserTest { … };
IN_PROC_BROWSER_TEST_F(NewTabPageUtilBrowserTest, EnableCartByToT) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilBrowserTest, DisableCartByToT) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilEnableFlagBrowserTest, EnableCartByFlag) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilDisableFlagBrowserTest,
DisableCartByFlag) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilBrowserTest, EnableDriveByToT) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilEnableFlagBrowserTest, EnableDriveByFlag) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilDisableFlagBrowserTest,
DisableDriveByFlag) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilEnableFlagBrowserTest,
EnableGoogleCalendarByFlag) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilDisableFlagBrowserTest,
DisableGoogleCalendarByFlag) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilEnableFlagBrowserTest,
GoogleCalendarIsNotManaged) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilEnableFlagBrowserTest,
EnableOutlookCalendarByFlag) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilDisableFlagBrowserTest,
DisableOutlookCalendarByFlag) { … }
IN_PROC_BROWSER_TEST_F(NewTabPageUtilEnableFlagBrowserTest,
OutlookCalendarIsNotManaged) { … }