Source release 15.2.0
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#include <openssl/cmac.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -39,7 +38,7 @@ void show_menu(char* prog_name) {
|
||||
std::cout << " e.g. adb shell '" << prog_name << " --server=\"url\"'"
|
||||
<< std::endl;
|
||||
|
||||
std::cout << " --verbose" << std::endl;
|
||||
std::cout << " --verbose or -v" << std::endl;
|
||||
std::cout << " increase logging verbosity (may be repeated)" << std::endl
|
||||
<< std::endl;
|
||||
|
||||
@@ -226,10 +225,10 @@ void WvCdmTestBase::SetUp() {
|
||||
// dynamically using an environment variable. The model name will show up in
|
||||
// the license server logs as the part of the device idenfication as
|
||||
// "model_name".
|
||||
std::stringstream ss;
|
||||
ss << test_info->test_case_name() << "." << test_info->name();
|
||||
std::string model_name =
|
||||
std::string(test_info->test_case_name()) + "." + test_info->name();
|
||||
int overwrite = 1; // Set value even if already set.
|
||||
setenv("MODEL_NAME", ss.str().c_str(), overwrite);
|
||||
setenv("MODEL_NAME", model_name.c_str(), overwrite);
|
||||
CryptoSession::SetCryptoSessionFactory(new TestCryptoSessionFactory());
|
||||
// TODO(fredgc): Add a test version of DeviceFiles.
|
||||
}
|
||||
@@ -355,7 +354,7 @@ bool WvCdmTestBase::Initialize(int argc, char **argv) {
|
||||
// Skip the first element, which is the program name.
|
||||
const std::vector<std::string> args(argv + 1, argv + argc);
|
||||
for (const std::string& arg : args) {
|
||||
if (arg == "--verbose") {
|
||||
if (arg == "--verbose" || arg == "-v") {
|
||||
++verbosity;
|
||||
} else if (arg == "--no_filter") {
|
||||
filter_tests = false;
|
||||
|
||||
Reference in New Issue
Block a user