diff --git a/security/keymint/aidl/vts/functional/Android.bp b/security/keymint/aidl/vts/functional/Android.bp index 13143bf620..e7f5a0fbd8 100644 --- a/security/keymint/aidl/vts/functional/Android.bp +++ b/security/keymint/aidl/vts/functional/Android.bp @@ -90,24 +90,3 @@ cc_test_library { "libgmock_ndk", ], } - -cc_test { - name: "VtsHalRemotelyProvisionedComponentTargetTest", - defaults: [ - "keymint_vts_defaults", - ], - srcs: [ - "VtsRemotelyProvisionedComponentTests.cpp", - ], - static_libs: [ - "libgmock_ndk", - "libkeymaster_portable", - "libkeymint_vts_test_utils", - "libpuresoftkeymasterdevice", - ], - test_config: "VtsRemotelyProvisionedComponentTests.xml", - test_suites: [ - "general-tests", - "vts", - ], -} diff --git a/security/rkp/TEST_MAPPING b/security/rkp/TEST_MAPPING new file mode 100644 index 0000000000..9ce5e9bced --- /dev/null +++ b/security/rkp/TEST_MAPPING @@ -0,0 +1,7 @@ +{ + "presubmit": [ + { + "name": "VtsHalRemotelyProvisionedComponentTargetTest" + } + ] +} diff --git a/security/rkp/aidl/vts/functional/Android.bp b/security/rkp/aidl/vts/functional/Android.bp new file mode 100644 index 0000000000..9c2b6e17e9 --- /dev/null +++ b/security/rkp/aidl/vts/functional/Android.bp @@ -0,0 +1,44 @@ +// +// Copyright (C) 2020 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +package { + // See: http://go/android-license-faq + default_applicable_licenses: ["hardware_interfaces_license"], +} + +cc_test { + name: "VtsHalRemotelyProvisionedComponentTargetTest", + defaults: [ + "keymint_vts_defaults", + ], + srcs: [ + "VtsRemotelyProvisionedComponentTests.cpp", + ], + shared_libs: [ + "libbinder_ndk", + "libcrypto", + ], + static_libs: [ + "libcppbor_external", + "libgmock_ndk", + "libkeymint_vts_test_utils", + ], + test_config: "VtsRemotelyProvisionedComponentTests.xml", + test_suites: [ + "general-tests", + "vts", + ], +} diff --git a/security/keymint/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.xml b/security/rkp/aidl/vts/functional/AndroidTest.xml similarity index 100% rename from security/keymint/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.xml rename to security/rkp/aidl/vts/functional/AndroidTest.xml diff --git a/security/keymint/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp b/security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp similarity index 99% rename from security/keymint/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp rename to security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp index 6d9c8c9aee..cb1c692df1 100644 --- a/security/keymint/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp +++ b/security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.cpp @@ -18,7 +18,7 @@ #include #define LOG_TAG "VtsRemotelyProvisionableComponentTests" -#include +#include #include #include #include diff --git a/security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.xml b/security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.xml new file mode 100644 index 0000000000..2375bde0ff --- /dev/null +++ b/security/rkp/aidl/vts/functional/VtsRemotelyProvisionedComponentTests.xml @@ -0,0 +1,34 @@ + + + +