Merge "Filter keybox tests with GTEST_SKIP" into udc-widevine-dev

This commit is contained in:
Treehugger Robot
2023-09-01 18:03:53 +00:00
committed by Android (Google) Code Review
6 changed files with 31 additions and 4 deletions

View File

@@ -3,12 +3,14 @@
// License Agreement.
#include <gtest/gtest.h>
#include <chrono>
#include <memory>
#include <thread>
#include "create_test_file_system.h"
#include "crypto_session.h"
#include "oec_device_features.h"
#include "properties.h"
#include "provisioning_holder.h"
#include "test_base.h"
@@ -24,6 +26,9 @@ class CdmOtaKeyboxTest : public ::testing::Test {
void SetUp() override {
::testing::Test::SetUp();
Properties::Init();
if (wvoec::global_features.provisioning_method != OEMCrypto_Keybox) {
GTEST_SKIP() << "Test for Prov 2.0 devices only.";
}
const ::testing::TestInfo* const test_info =
::testing::UnitTest::GetInstance()->current_test_info();
LOGD("Running test %s.%s", test_info->test_case_name(), test_info->name());