#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/content_settings/core/browser/content_settings_utils.h"
#include <stddef.h>
#include <string>
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/content_settings/core/common/features.h"
#include "components/content_settings/core/test/content_settings_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content_settings {
namespace {
const char* const kContentSettingNames[] = …;
static_assert …;
}
TEST(ContentSettingsUtilsTest, ParsePatternString) { … }
TEST(ContentSettingsUtilsTest, ContentSettingsStringMap) { … }
TEST(ContentSettingsUtilsTest, IsMorePermissive) { … }
#if !BUILDFLAG(IS_IOS) && !BUILDFLAG(IS_ANDROID)
TEST(ContentSettingsUtilsTest, CanBeAutoRevoked) { … }
#endif
class ContentSettingsUtilsFlagTest : public testing::TestWithParam<bool> { … };
TEST_P(ContentSettingsUtilsFlagTest, GetCoarseVisitedTime) { … }
INSTANTIATE_TEST_SUITE_P(…);
}