Source release 17.1.2

This commit is contained in:
John "Juce" Bruce
2023-06-23 15:37:42 -07:00
parent a10f13a2dc
commit 2baa7c6e2b
353 changed files with 12903 additions and 2305 deletions

View File

@@ -92,7 +92,13 @@ class ConfigTestEnv {
}
int test_pass() const { return test_pass_; }
const std::string& test_data_path() const { return test_data_path_; }
int server_version() const { return server_version_; }
// Return true if the server version has been set and it is older than the
// specified version. We know the server version is set, if it is nonzero.
bool ServerOlderThan(int server_version) {
return server_version_ > 0 && server_version_ < server_version;
}
static const CdmInitData GetInitData(ContentId content_id);
static const std::string& GetLicenseServerUrl(
ServerConfigurationId server_configuration_id);
@@ -122,9 +128,17 @@ class ConfigTestEnv {
void set_test_data_path(const std::string& test_data_path) {
test_data_path_ = test_data_path;
}
void set_server_version(int server_version) {
if (server_version >= 0) server_version_ = server_version;
}
// The QA service certificate, used for a local provisioning server.
static std::string QAProvisioningServiceCertificate();
bool dump_golden_data() const { return dump_golden_data_; }
void set_dump_golden_data(bool dump_golden_data) {
dump_golden_data_ = dump_golden_data;
}
private:
void Init(ServerConfigurationId server_id);
@@ -139,6 +153,10 @@ class ConfigTestEnv {
std::string provisioning_service_certificate_;
int test_pass_;
std::string test_data_path_; // Where to store test data for reboot tests.
int server_version_ = 0;
// It dump_golden_data_ is true, message data is dumped to a file for help
// in generating golden test data.
bool dump_golden_data_ = false;
};
// The default provisioning server URL for a default provisioning request.