#include "components/policy/test_support/request_handler_for_client_cert_provisioning.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/test_support/embedded_policy_test_server_test_base.h"
#include "crypto/rsa_private_key.h"
#include "crypto/signature_creator.h"
#include "device_management_backend.pb.h"
#include "net/http/http_status_code.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
em;
namespace policy {
namespace {
constexpr char kDeviceId[] = …;
}
class RequestHandlerForClientCertProvisioningTest
: public EmbeddedPolicyTestServerTestBase { … };
TEST_F(RequestHandlerForClientCertProvisioningTest,
HandleStartCsrRequest_Succeeds) { … }
TEST_F(RequestHandlerForClientCertProvisioningTest,
HandleFinishCsrRequest_Succeeds) { … }
TEST_F(RequestHandlerForClientCertProvisioningTest,
HandleDownloadCsrRequest_Succeeds) { … }
TEST_F(RequestHandlerForClientCertProvisioningTest,
HandleNoSpecificRequest_Fails) { … }
}