Source release 18.7.0

This commit is contained in:
John W. Bruce
2024-09-05 07:06:37 +00:00
parent 20c0587dcb
commit 4420a6f812
34 changed files with 979 additions and 200 deletions

View File

@@ -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.