#include "chrome/browser/ui/views/user_education/browser_user_education_service.h"
#include <iterator>
#include <string>
#include <vector>
#include "base/strings/string_util.h"
#include "base/test/metrics/action_suffix_reader.h"
#include "base/test/metrics/histogram_variants_reader.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
#include "components/feature_engagement/public/configuration.h"
#include "components/feature_engagement/public/feature_configurations.h"
#include "components/feature_engagement/public/feature_constants.h"
#include "components/user_education/common/feature_promo_registry.h"
#include "components/user_education/common/tutorial_registry.h"
#include "components/user_education/common/user_education_metadata.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
std::vector<std::string> CheckMetadata(
const user_education::Metadata& metadata) { … }
template <size_t N>
bool Contains(const char* const (&values)[N], const std::string& value) { … }
}
TEST(BrowserUserEducationServiceTest, CheckFeaturePromoHistograms) { … }
TEST(BrowserUserEducationServiceTest, CheckFeaturePromoActions) { … }
TEST(BrowserUserEducationServiceTest, CheckNewBadgeHistograms) { … }
TEST(BrowserUserEducationServiceTest, CheckTutorialHistograms) { … }
TEST(BrowserUserEducationServiceTest, PreventNewHardCodedConfigurations) { … }
TEST(BrowserUserEducationServiceTest, CheckFeaturePromoMetadata) { … }
TEST(BrowserUserEducationServiceTest, CheckTutorialPromoMetadata) { … }
TEST(BrowserUserEducationServiceTest, CheckNewBadgeMetadata) { … }