#include "components/variations/service/variations_service.h"
#include "chrome/browser/browser_process.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/metrics_services_manager/metrics_services_manager.h"
#include "components/prefs/pref_service.h"
#include "content/public/test/browser_test.h"
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#include "chromeos/startup/browser_params_proxy.h"
#endif
namespace variations {
class VariationsServiceBrowserTest : public InProcessBrowserTest { … };
#if BUILDFLAG(IS_CHROMEOS_LACROS)
IN_PROC_BROWSER_TEST_F(VariationsServiceBrowserTest,
LimitedEntropySyntheticTrialSeedTransfer) {
auto* ash_params = chromeos::BrowserParamsProxy::Get();
variations::VariationsService* variations_service =
g_browser_process->GetMetricsServicesManager()->GetVariationsService();
if (ash_params->LimitedEntropySyntheticTrialSeed() != 0u) {
EXPECT_EQ(variations_service->limited_entropy_synthetic_trial_
.GetRandomizationSeed(local_state()),
ash_params->LimitedEntropySyntheticTrialSeed());
}
}
#endif
}