#include "base/memory/raw_ptr.h"
#include "base/test/values_test_util.h"
#include "chrome/common/pref_names.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/policy/core/browser/configuration_policy_handler.h"
#include "components/policy/core/browser/configuration_policy_handler_list.h"
#include "components/policy/core/browser/configuration_policy_pref_store.h"
#include "components/policy/core/browser/configuration_policy_pref_store_test.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/core/common/schema.h"
#include "components/policy/policy_constants.h"
namespace policy {
namespace {
ParseJson;
}
class SerialAllowUsbDevicesForUrlsPolicyHandlerTest
: public ConfigurationPolicyPrefStoreTest { … };
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest, CheckPolicySettings) { … }
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest, MissingUrls) { … }
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest, MissingDevices) { … }
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest, DevicesMustBeList) { … }
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest, UrlsMustBeList) { … }
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest, VendorIdMustBeInt) { … }
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest, VendorIdOutOfRange) { … }
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest,
ProductIdRequiresVendorId) { … }
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest, ProductIdMustBeInt) { … }
TEST_F(SerialAllowUsbDevicesForUrlsPolicyHandlerTest, ProductIdOutOfRange) { … }
}