chromium/chrome/browser/ui/user_education/user_education_configuration_provider_browsertest.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 "chrome/browser/user_education/user_education_configuration_provider.h"

#include "base/test/scoped_feature_list.h"
#include "chrome/browser/feature_engagement/tracker_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/feature_engagement/public/configuration.h"
#include "components/feature_engagement/public/feature_constants.h"
#include "components/feature_engagement/public/tracker.h"
#include "components/feature_engagement/test/scoped_iph_feature_list.h"
#include "components/user_education/common/user_education_features.h"
#include "content/public/test/browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {
constexpr char kExtendedParamName[] =;
constexpr char kExtendedParamValue[] =;
}  // namespace

class UserEducationConfigurationProviderBrowsertest
    : public InProcessBrowserTest,
      public testing::WithParamInterface<bool> {};

INSTANTIATE_TEST_SUITE_P();

// Ensure that a feature which has field trial params that are not part of the
// FE config still gets proper automatic configuration.
IN_PROC_BROWSER_TEST_P(UserEducationConfigurationProviderBrowsertest,
                       AutoConfigureWithExtendedParam) {}