Enable CDM integration tests to run against staging
[ Merge of https://go/wvgerrit/15534 ] Added command line support and configuration information. Removed secure transfer, full path and port options from the usage message as they are not supported. b/23593222 Change-Id: I7d4cdb4b4db543a6302c742bfc2d2572d75957bd
This commit is contained in:
@@ -44,19 +44,7 @@ wvcdm::KeyId g_key_id;
|
||||
wvcdm::CdmKeySystem g_key_system;
|
||||
std::string g_license_server;
|
||||
wvcdm::KeyId g_wrong_key_id;
|
||||
wvcdm::LicenseServerId g_license_server_id = wvcdm::kContentProtectionServer;
|
||||
|
||||
std::string kServiceCertificate =
|
||||
"0803121028703454C008F63618ADE7443DB6C4C8188BE7F99005228E023082010"
|
||||
"A0282010100B52112B8D05D023FCC5D95E2C251C1C649B4177CD8D2BEEF355BB0"
|
||||
"6743DE661E3D2ABC3182B79946D55FDC08DFE95407815E9A6274B322A2C7F5E06"
|
||||
"7BB5F0AC07A89D45AEA94B2516F075B66EF811D0D26E1B9A6B894F2B9857962AA"
|
||||
"171C4F66630D3E4C602718897F5E1EF9B6AAF5AD4DBA2A7E14176DF134A1D3185"
|
||||
"B5A218AC05A4C41F081EFFF80A3A040C50B09BBC740EEDCD8F14D675A91980F92"
|
||||
"CA7DDC646A06ADAD5101F74A0E498CC01F00532BAC217850BD905E90923656B7D"
|
||||
"FEFEF42486767F33EF6283D4F4254AB72589390BEE55808F1D668080D45D893C2"
|
||||
"BCA2F74D60A0C0D0A0993CEF01604703334C3638139486BC9DAF24FD67A07F9AD"
|
||||
"94302030100013A1273746167696E672E676F6F676C652E636F6D";
|
||||
wvcdm::LicenseServerId g_license_server_id = wvcdm::kContentProtectionUatServer;
|
||||
|
||||
// TODO(rfrias): refactor to print out the decryption test names
|
||||
struct SubSampleInfo {
|
||||
@@ -1190,29 +1178,22 @@ void show_menu(char* prog_name) {
|
||||
std::cout << " or adb shell '" << prog_name << " -u\"url\"'" << std::endl
|
||||
<< std::endl;
|
||||
|
||||
std::cout << std::setw(35) << std::left << " -f/--use_full_path";
|
||||
std::cout << "specify server url is not a proxy server" << std::endl;
|
||||
std::cout << std::endl;
|
||||
|
||||
std::cout << std::setw(35) << std::left << " -i/--license_server_id=<gp/cp>";
|
||||
std::cout << std::setw(37) << std::left
|
||||
<< " -i/--license_server_id=<gp/cp/st>";
|
||||
std::cout << "specifies which default server settings to use: " << std::endl;
|
||||
std::cout << std::setw(35) << std::left << " ";
|
||||
std::cout << "gp (case sensitive) for GooglePlay server" << std::endl;
|
||||
std::cout << std::setw(35) << std::left << " ";
|
||||
std::cout << "cp (case sensitive) for Content Protection server" << std::endl
|
||||
std::cout << std::setw(37) << std::left << " ";
|
||||
std::cout << "gp for GooglePlay server" << std::endl;
|
||||
std::cout << std::setw(37) << std::left << " ";
|
||||
std::cout << "cp for Content Protection UAT server" << std::endl;
|
||||
std::cout << std::setw(37) << std::left << " ";
|
||||
std::cout << "st for Content Protection Staging server" << std::endl
|
||||
<< std::endl;
|
||||
|
||||
std::cout << std::setw(35) << std::left << " -k/--keyid=<key_id>";
|
||||
std::cout << std::setw(37) << std::left << " -k/--keyid=<key_id>";
|
||||
std::cout << "configure the key id or pssh, in hex format" << std::endl
|
||||
<< std::endl;
|
||||
|
||||
std::cout << std::setw(35) << std::left << " -p/--port=<port>";
|
||||
std::cout << "specifies the connection port" << std::endl << std::endl;
|
||||
|
||||
std::cout << std::setw(35) << std::left << " -s/--secure_transfer";
|
||||
std::cout << "use https transfer protocol" << std::endl << std::endl;
|
||||
|
||||
std::cout << std::setw(35) << std::left << " -u/--server=<server_url>";
|
||||
std::cout << std::setw(37) << std::left << " -u/--server=<server_url>";
|
||||
std::cout
|
||||
<< "configure the license server url, please include http[s] in the url"
|
||||
<< std::endl << std::endl;
|
||||
@@ -1238,7 +1219,9 @@ int main(int argc, char** argv) {
|
||||
if (!license_id.compare("gp")) {
|
||||
g_license_server_id = wvcdm::kGooglePlayServer;
|
||||
} else if (!license_id.compare("cp")) {
|
||||
g_license_server_id = wvcdm::kContentProtectionServer;
|
||||
g_license_server_id = wvcdm::kContentProtectionUatServer;
|
||||
} else if (!license_id.compare("st")) {
|
||||
g_license_server_id = wvcdm::kContentProtectionStagingServer;
|
||||
} else {
|
||||
std::cout << "Invalid license server id" << optarg << std::endl;
|
||||
show_usage = true;
|
||||
|
||||
Reference in New Issue
Block a user