It's hard to correlate test failures with the tests that were running when looking in the logcat. This change adds the current test name in the log for each test to make it more clear. Merge of go/wvgerrit/#/c/13847/ from the widevine cdm repo b/19822500 Change-Id: Idd37a22f7063d9d686d3ead567954b86fb0fa70f
20 lines
473 B
C++
20 lines
473 B
C++
// Copyright 2015 Google Inc. All Rights Reserved.
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
namespace wvcdm {
|
|
class WvCdmTestBase : public ::testing::Test {
|
|
public:
|
|
WvCdmTestBase() {}
|
|
virtual ~WvCdmTestBase() {}
|
|
|
|
protected:
|
|
virtual void SetUp() {
|
|
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());
|
|
}
|
|
};
|
|
} // namespace wvcdm
|