Source release 16.2.0
This commit is contained in:
32
core/test/fake_provisioning_server.h
Normal file
32
core/test/fake_provisioning_server.h
Normal file
@@ -0,0 +1,32 @@
|
||||
// Copyright 2019 Google LLC. All Rights Reserved. This file and proprietary
|
||||
// source code may only be used and distributed under the Widevine Master
|
||||
// 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_
|
||||
Reference in New Issue
Block a user