#include "chrome/browser/about_flags.h"
#include <stddef.h>
#include <map>
#include <optional>
#include <set>
#include <string>
#include <utility>
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/test/metrics/histogram_enum_reader.h"
#include "build/build_config.h"
#include "chrome/common/chrome_version.h"
#include "components/flags_ui/feature_entry.h"
#include "components/flags_ui/feature_entry_macros.h"
#include "components/flags_ui/flags_test_helpers.h"
#include "components/flags_ui/flags_ui_metrics.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace about_flags {
namespace {
Sample;
SwitchToIdMap;
std::set<std::string> GetAllPublicSwitchesAndFeaturesForTesting() { … }
std::vector<std::string> GetAllVariationIds() { … }
std::pair<int, bool> ParseVariationId(const std::string& variation_str) { … }
}
TEST(AboutFlagsTest, NoSeparators) { … }
TEST(AboutFlagsTest, EveryFlagHasMetadata) { … }
TEST(AboutFlagsTest, OnlyPermittedFlagsNeverExpire) { … }
TEST(AboutFlagsTest, EveryFlagHasNonEmptyOwners) { … }
TEST(AboutFlagsTest, OwnersLookValid) { … }
TEST(AboutFlagsTest, FlagsListedInAlphabeticalOrder) { … }
TEST(AboutFlagsTest, EveryFlagIsValid) { … }
TEST(AboutFlagsTest, RecentUnexpireFlagsArePresent) { … }
TEST(AboutFlagsTest, VariationIdsAreValid) { … }
TEST(AboutFlagsTest, ScopedFeatureEntriesRestoresFeatureEntries) { … }
class AboutFlagsHistogramTest : public ::testing::Test { … };
TEST_F(AboutFlagsHistogramTest, CheckHistograms) { … }
}