#include "components/enterprise/content/clipboard_restriction_service.h"
#include "components/enterprise/content/pref_names.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace {
const char kTestUrl[] = …;
const char kTestPatternAllSubdomains[] = …;
const char kTestPatternWildcard[] = …;
const int kLargeDataSize = …;
}
class ClipboardRestrictionServiceTest : public testing::Test { … };
TEST_F(ClipboardRestrictionServiceTest, TestNoPolicySet) { … }
TEST_F(ClipboardRestrictionServiceTest, BlockPatternIfMatchingEnable) { … }
TEST_F(ClipboardRestrictionServiceTest, BlockPatternIfMatchingEnableWildcard) { … }
TEST_F(ClipboardRestrictionServiceTest, DontBlockPatternIfMatchingDisable) { … }
TEST_F(ClipboardRestrictionServiceTest, DontBlockPatternIfMatchingBoth) { … }
TEST_F(ClipboardRestrictionServiceTest,
BlockPatternIfMatchingEnableAndDataSizeLargerThanMin) { … }
TEST_F(ClipboardRestrictionServiceTest,
DontBlockPatternIfMatchingEnableAndDataSizeSmallerThanMin) { … }
TEST_F(ClipboardRestrictionServiceTest,
DontBlockPatternIfMatchingEnableAndDataSizeSmallerThanDefaultMin) { … }
TEST_F(ClipboardRestrictionServiceTest, ServiceCreatedAfterPrefValueSet) { … }
TEST_F(ClipboardRestrictionServiceTest, BlockPatternPopulatesMessage) { … }