Files
ce_cdm/core/test/fake_provisioning_server.h
John "Juce" Bruce 694cf6fb25 Source release 17.1.0
2022-07-07 17:14:31 -07:00

33 lines
929 B
C++

// Copyright 2019 Google LLC. All Rights Reserved. This file and proprietary
// source code may only be used and distributed under the Widevine License
// Agreement.
#ifndef WVCDM_CORE_FAKE_PROVISIONING_SERVER_H_
#define WVCDM_CORE_FAKE_PROVISIONING_SERVER_H_
#include <string>
#include "config_test_env.h"
namespace wvcdm {
// A fake provisioning server. This can be used to generate custom made
// provisioning responses.
class FakeProvisioningServer {
public:
FakeProvisioningServer();
// Get the service certificate for this server.
const std::string& service_certificate() { return service_certificate_; }
// Make a response for this request. Returns true on success.
bool MakeResponse(const std::string& serialized_signed_request,
std::string* json_response);
private:
std::string service_certificate_;
};
} // namespace wvcdm
#endif // WVCDM_CORE_FAKE_PROVISIONING_SERVER_H_