1 /*
2 * Copyright (C) 2024 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include <gtest/gtest.h>
18
19 #include <cstdlib>
20
21 #include "include/igt_test_helper.h"
22
23 namespace igt {
24 namespace {
25
26 /**
27 * TEST: kms content protection
28 * Category: Display
29 * Description: Test content protection (HDCP)
30 * Functionality: hdcp1.4
31 * Mega feature: HDCP
32 * Test category: functionality test
33 */
34
35 class KmsContentProtectionTests
36 : public ::testing::TestWithParam<IgtSubtestParams>,
37 public IgtTestHelper {
38 public:
KmsContentProtectionTests()39 KmsContentProtectionTests() : IgtTestHelper("kms_content_protection") {}
40 };
41
42 IgtSubtestParams subtests[] = {
43 // Fundamental Validation tests.
44 {.name = "lic-type-0",
45 .desc = "Test for the integrity of link for type-0 content",
46 .rationale = "it's a hardware feature"},
47 {.name = "lic-type-1",
48 .desc = "Test for the integrity of link for type-1 content",
49 .rationale = "it's a hardware feature"}};
50
TEST_P(KmsContentProtectionTests,RunSubTests)51 TEST_P(KmsContentProtectionTests, RunSubTests) { runSubTest(GetParam()); }
52
53 INSTANTIATE_TEST_SUITE_P(KmsContentProtectionTests, KmsContentProtectionTests,
54 ::testing::ValuesIn(subtests),
55 IgtTestHelper::generateGTestName);
56
57 } // namespace
58 } // namespace igt
59