Replace hardcoded parameters
This commit is contained in:
@@ -14,41 +14,78 @@
|
||||
#define COMMON_TEST_DRM_CERTIFICATES_H_
|
||||
|
||||
#include <string>
|
||||
#include "base/macros.h"
|
||||
|
||||
namespace widevine {
|
||||
|
||||
class TestDrmCertificates {
|
||||
public:
|
||||
TestDrmCertificates();
|
||||
|
||||
TestDrmCertificates(const TestDrmCertificates&) = delete;
|
||||
TestDrmCertificates& operator=(const TestDrmCertificates&) = delete;
|
||||
|
||||
virtual ~TestDrmCertificates() {}
|
||||
|
||||
// returns a test root certificate
|
||||
const std::string& test_root_certificate() const { return test_root_certificate_; }
|
||||
const std::string& test_root_certificate() const {
|
||||
return test_root_certificate_;
|
||||
}
|
||||
|
||||
// returns a test intermediate certificate with an RSA key
|
||||
|
||||
// returns a test intermediate certificate
|
||||
const std::string& test_intermediate_certificate() const {
|
||||
return test_intermediate_certificate_;
|
||||
}
|
||||
|
||||
// returns an user device certificate
|
||||
// returns a test intermediate certificate with an EC key
|
||||
const std::string& test_intermediate_certificate_with_ec_key() const {
|
||||
return test_intermediate_certificate_with_ec_key_;
|
||||
}
|
||||
|
||||
// returns a user device certificate with an RSA key
|
||||
|
||||
const std::string& test_user_device_certificate() const {
|
||||
return test_user_device_certificate_;
|
||||
}
|
||||
|
||||
// returns a service certificate
|
||||
const std::string& test_service_certificate() const {
|
||||
return test_service_certificate_;
|
||||
// returns a user device certificate with an EC key
|
||||
const std::string& test_user_device_certificate_with_ec_key() const {
|
||||
return test_user_device_certificate_with_ec_key_;
|
||||
}
|
||||
|
||||
// returns a user device certificate with a Root of Trust Id.
|
||||
const std::string& test_user_device_certificate_with_rot_id() const {
|
||||
return test_user_device_certificate_with_rot_id_;
|
||||
}
|
||||
|
||||
// returns a service certificate with license sdk service type
|
||||
const std::string& test_service_certificate_license_sdk() const {
|
||||
return test_service_certificate_license_sdk_;
|
||||
}
|
||||
|
||||
// returns a service certificate with all service types
|
||||
const std::string& test_service_certificate_all_types() const {
|
||||
return test_service_certificate_all_types_;
|
||||
}
|
||||
|
||||
// returns a service certificate prior to a change requiring the service
|
||||
// type to be specified.
|
||||
const std::string& test_service_certificate_no_type() const {
|
||||
return test_service_certificate_no_type_;
|
||||
}
|
||||
|
||||
private:
|
||||
const std::string test_root_certificate_;
|
||||
const std::string test_intermediate_certificate_;
|
||||
const std::string test_intermediate_certificate_with_ec_key_;
|
||||
const std::string test_user_device_certificate_;
|
||||
const std::string test_service_certificate_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(TestDrmCertificates);
|
||||
const std::string test_user_device_certificate_with_ec_key_;
|
||||
const std::string test_user_device_certificate_with_rot_id_;
|
||||
const std::string test_service_certificate_license_sdk_;
|
||||
const std::string test_service_certificate_all_types_;
|
||||
const std::string test_service_certificate_no_type_;
|
||||
};
|
||||
|
||||
} // namespace widevine
|
||||
|
||||
#endif // COMMON_TEST_DRM_CERTIFICATES_H_
|
||||
|
||||
Reference in New Issue
Block a user