diff options
Diffstat (limited to 'chromium/components/policy/test_support/request_handler_for_device_attribute_update_permission.h')
-rw-r--r-- | chromium/components/policy/test_support/request_handler_for_device_attribute_update_permission.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/chromium/components/policy/test_support/request_handler_for_device_attribute_update_permission.h b/chromium/components/policy/test_support/request_handler_for_device_attribute_update_permission.h new file mode 100644 index 00000000000..4ee54f5bf0b --- /dev/null +++ b/chromium/components/policy/test_support/request_handler_for_device_attribute_update_permission.h @@ -0,0 +1,33 @@ +// Copyright 2021 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef COMPONENTS_POLICY_TEST_SUPPORT_REQUEST_HANDLER_FOR_DEVICE_ATTRIBUTE_UPDATE_PERMISSION_H_ +#define COMPONENTS_POLICY_TEST_SUPPORT_REQUEST_HANDLER_FOR_DEVICE_ATTRIBUTE_UPDATE_PERMISSION_H_ + +#include "components/policy/test_support/embedded_policy_test_server.h" + +namespace policy { + +// Handler for request type `device_attribute_update_permission`. +class RequestHandlerForDeviceAttributeUpdatePermission + : public EmbeddedPolicyTestServer::RequestHandler { + public: + RequestHandlerForDeviceAttributeUpdatePermission( + ClientStorage* client_storage, + PolicyStorage* policy_storage); + RequestHandlerForDeviceAttributeUpdatePermission( + RequestHandlerForDeviceAttributeUpdatePermission&& handler) = delete; + RequestHandlerForDeviceAttributeUpdatePermission& operator=( + RequestHandlerForDeviceAttributeUpdatePermission&& handler) = delete; + ~RequestHandlerForDeviceAttributeUpdatePermission() override; + + // EmbeddedPolicyTestServer::RequestHandler: + std::string RequestType() override; + std::unique_ptr<net::test_server::HttpResponse> HandleRequest( + const net::test_server::HttpRequest& request) override; +}; + +} // namespace policy + +#endif // COMPONENTS_POLICY_TEST_SUPPORT_REQUEST_HANDLER_FOR_DEVICE_ATTRIBUTE_UPDATE_PERMISSION_H_ |