Source release 18.7.0
This commit is contained in:
@@ -69,6 +69,13 @@ class TestHost : public widevine::Cdm::IClock,
|
||||
void setTimeout(int64_t delay_ms, IClient* client, void* context) override;
|
||||
void cancel(IClient* client) override;
|
||||
|
||||
// If this is set, then the storage will return this as a baked in cert.
|
||||
// Trying to write a new cert will generate an error.
|
||||
const std::string& baked_in_cert() const { return baked_in_cert_; };
|
||||
void set_baked_in_cert(const std::string& baked_in_cert) {
|
||||
baked_in_cert_ = baked_in_cert;
|
||||
};
|
||||
|
||||
private:
|
||||
struct Timer {
|
||||
Timer(int64_t expiry_time, IClient* client, void* context)
|
||||
@@ -95,6 +102,7 @@ class TestHost : public widevine::Cdm::IClock,
|
||||
|
||||
Storage global_storage_;
|
||||
Storage per_origin_storage_;
|
||||
std::string baked_in_cert_;
|
||||
};
|
||||
|
||||
// Owned and managed by the test runner.
|
||||
|
||||
Reference in New Issue
Block a user