chromium/chrome/browser/policy/serial_allow_usb_devices_for_urls_policy_handler_unittest.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

}  // namespace

// There is no real SerialAllowUsbDevicesForUrlsPolicyHandler class as this
// policy uses SimpleSchemaValidatingPolicyHandler but having dedicated test
// cases is useful to ensure expected behavior.
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) {}

}  // namespace policy