Annotate logcat with current running test (oemcrypto)
Merge from widevine repo of http://go/wvgerrit/14125 This copies code from http://go/wvgerrit/13847 to the oemcrypto unit tests. It puts the test name in the log file. I also commented out some unused function parameters to avoid compiler warnings. Change-Id: I3ba259de2f408ec60e90db7f0ea1524d5aa8f8a4
This commit is contained in:
@@ -1458,6 +1458,10 @@ class OEMCryptoClientTest : public ::testing::Test {
|
||||
wvcdm::Properties::Init();
|
||||
ASSERT_EQ(OEMCrypto_SUCCESS, OEMCrypto_Initialize());
|
||||
wvcdm::g_cutoff = wvcdm::LOG_INFO;
|
||||
const ::testing::TestInfo* const test_info =
|
||||
::testing::UnitTest::GetInstance()->current_test_info();
|
||||
LOGD("Running test %s.%s", test_info->name(),
|
||||
test_info->test_case_name());
|
||||
}
|
||||
|
||||
virtual void TearDown() {
|
||||
|
||||
Reference in New Issue
Block a user