#include "chrome/browser/ui/startup/default_browser_prompt/default_browser_prompt.h"
#include "base/metrics/field_trial.h"
#include "base/strings/strcat.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/startup/default_browser_prompt/default_browser_prompt_trial.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/prefs/pref_service.h"
#include "components/variations/active_field_trials.h"
#include "content/public/test/browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"
class DefaultBrowserPromptBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(DefaultBrowserPromptBrowserTest,
JoinsSyntheticTrialCohort) { … }
IN_PROC_BROWSER_TEST_F(DefaultBrowserPromptBrowserTest,
StickingToCohortDoesNotActivateExperiment) { … }
class DefaultBrowserPromptDisabledBrowserTest
: public DefaultBrowserPromptBrowserTest { … };
IN_PROC_BROWSER_TEST_F(DefaultBrowserPromptDisabledBrowserTest,
DoesNotJoinSyntheticTrialCohort) { … }