Suppress gtest error for tests without any instance
Bug: 162052785 Test: m -j vts Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
This commit is contained in:
parent
3d5e0bb649
commit
ba4d532fee
90 changed files with 112 additions and 1 deletions
|
@ -93,6 +93,7 @@ TEST_P(AtraceHidlTest, disableAllCategories) {
|
||||||
EXPECT_EQ(Status::SUCCESS, ret);
|
EXPECT_EQ(Status::SUCCESS, ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AtraceHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, AtraceHidlTest,
|
PerInstance, AtraceHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IAtraceDevice::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IAtraceDevice::descriptor)),
|
||||||
|
|
|
@ -73,6 +73,7 @@ TEST_P(AuthSecretHidlTest, provisionPrimaryUserCredentialAndWrongSecret) {
|
||||||
authsecret->primaryUserCredential(WRONG_SECRET);
|
authsecret->primaryUserCredential(WRONG_SECRET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AuthSecretHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, AuthSecretHidlTest,
|
PerInstance, AuthSecretHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IAuthSecret::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IAuthSecret::descriptor)),
|
||||||
|
|
|
@ -579,7 +579,7 @@ TEST_P(EvsHidlTest, MultiCameraStream) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(EvsHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance,
|
PerInstance,
|
||||||
EvsHidlTest,
|
EvsHidlTest,
|
||||||
|
|
|
@ -344,6 +344,7 @@ TEST_P(FaceHidlTest, OnLockoutChangedTest) {
|
||||||
|
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(FaceHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, FaceHidlTest,
|
PerInstance, FaceHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBiometricsFace::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBiometricsFace::descriptor)),
|
||||||
|
|
|
@ -472,6 +472,7 @@ TEST_P(FingerprintHidlTest, CancelRemoveAllTest) {
|
||||||
}
|
}
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(FingerprintHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, FingerprintHidlTest,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, FingerprintHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
||||||
IBiometricsFingerprint::descriptor)),
|
IBiometricsFingerprint::descriptor)),
|
||||||
|
|
|
@ -741,6 +741,7 @@ TEST_P(BluetoothHidlTest, LoopbackModeBandwidth) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BluetoothHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, BluetoothHidlTest,
|
PerInstance, BluetoothHidlTest,
|
||||||
testing::ValuesIn(
|
testing::ValuesIn(
|
||||||
|
|
|
@ -753,6 +753,7 @@ TEST_P(BluetoothHidlTest, LoopbackModeBandwidth) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BluetoothHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, BluetoothHidlTest,
|
PerInstance, BluetoothHidlTest,
|
||||||
testing::ValuesIn(
|
testing::ValuesIn(
|
||||||
|
|
|
@ -888,20 +888,28 @@ static const std::vector<std::string> kAudioInstances =
|
||||||
android::hardware::getAllHalInstanceNames(
|
android::hardware::getAllHalInstanceNames(
|
||||||
IBluetoothAudioProvidersFactory::descriptor);
|
IBluetoothAudioProvidersFactory::descriptor);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(
|
||||||
|
BluetoothAudioProvidersFactoryHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, BluetoothAudioProvidersFactoryHidlTest,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, BluetoothAudioProvidersFactoryHidlTest,
|
||||||
testing::ValuesIn(kAudioInstances),
|
testing::ValuesIn(kAudioInstances),
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(
|
||||||
|
BluetoothAudioProviderA2dpSoftwareHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance,
|
INSTANTIATE_TEST_SUITE_P(PerInstance,
|
||||||
BluetoothAudioProviderA2dpSoftwareHidlTest,
|
BluetoothAudioProviderA2dpSoftwareHidlTest,
|
||||||
testing::ValuesIn(kAudioInstances),
|
testing::ValuesIn(kAudioInstances),
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(
|
||||||
|
BluetoothAudioProviderA2dpHardwareHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance,
|
INSTANTIATE_TEST_SUITE_P(PerInstance,
|
||||||
BluetoothAudioProviderA2dpHardwareHidlTest,
|
BluetoothAudioProviderA2dpHardwareHidlTest,
|
||||||
testing::ValuesIn(kAudioInstances),
|
testing::ValuesIn(kAudioInstances),
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(
|
||||||
|
BluetoothAudioProviderHearingAidSoftwareHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance,
|
INSTANTIATE_TEST_SUITE_P(PerInstance,
|
||||||
BluetoothAudioProviderHearingAidSoftwareHidlTest,
|
BluetoothAudioProviderHearingAidSoftwareHidlTest,
|
||||||
testing::ValuesIn(kAudioInstances),
|
testing::ValuesIn(kAudioInstances),
|
||||||
|
|
|
@ -191,6 +191,7 @@ TEST_P(BootHidlTest, GetSuffix) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BootHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, BootHidlTest,
|
PerInstance, BootHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBootControl::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBootControl::descriptor)),
|
||||||
|
|
|
@ -84,6 +84,7 @@ TEST_P(BootHidlTest, SetSnapshotMergeStatus) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BootHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, BootHidlTest,
|
PerInstance, BootHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBootControl::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBootControl::descriptor)),
|
||||||
|
|
|
@ -813,6 +813,7 @@ TEST_P(BroadcastRadioHalTest, AnnouncementListenerRegistration) {
|
||||||
closeHandle->close();
|
closeHandle->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BroadcastRadioHalTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, BroadcastRadioHalTest,
|
PerInstance, BroadcastRadioHalTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBroadcastRadio::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBroadcastRadio::descriptor)),
|
||||||
|
|
|
@ -140,6 +140,7 @@ TEST_P(ConfigstoreHidlTest, TestColorConstrainsBasic) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ConfigstoreHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, ConfigstoreHidlTest,
|
PerInstance, ConfigstoreHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISurfaceFlingerConfigs::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISurfaceFlingerConfigs::descriptor)),
|
||||||
|
|
|
@ -473,6 +473,7 @@ TEST(ConfirmationUITestSelfTest, HMAC256SelfTest) {
|
||||||
ASSERT_EQ(expected, result.value());
|
ASSERT_EQ(expected, result.value());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ConfirmationUIHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, ConfirmationUIHidlTest,
|
PerInstance, ConfirmationUIHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IConfirmationUI::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IConfirmationUI::descriptor)),
|
||||||
|
|
|
@ -63,9 +63,12 @@ INSTANTIATE_TEST_CASE_P(DrmHalVendorDecryptTestCases, DrmHalVendorDecryptTest,
|
||||||
testing::ValuesIn(kAllInstances),
|
testing::ValuesIn(kAllInstances),
|
||||||
drm_vts::PrintParamInstanceToString);
|
drm_vts::PrintParamInstanceToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalClearkeyFactoryTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyFactoryTest, testing::ValuesIn(kAllInstances),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyFactoryTest, testing::ValuesIn(kAllInstances),
|
||||||
drm_vts::PrintParamInstanceToString);
|
drm_vts::PrintParamInstanceToString);
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalClearkeyPluginTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyPluginTest, testing::ValuesIn(kAllInstances),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyPluginTest, testing::ValuesIn(kAllInstances),
|
||||||
drm_vts::PrintParamInstanceToString);
|
drm_vts::PrintParamInstanceToString);
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalClearkeyDecryptTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyDecryptTest, testing::ValuesIn(kAllInstances),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyDecryptTest, testing::ValuesIn(kAllInstances),
|
||||||
drm_vts::PrintParamInstanceToString);
|
drm_vts::PrintParamInstanceToString);
|
||||||
|
|
|
@ -48,5 +48,6 @@ static const std::vector<DrmHalTestParam> kAllInstances = [] {
|
||||||
return allInstancesWithClearKeyUuid;
|
return allInstancesWithClearKeyUuid;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalClearkeyTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyTest, testing::ValuesIn(kAllInstances),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyTest, testing::ValuesIn(kAllInstances),
|
||||||
PrintParamInstanceToString);
|
PrintParamInstanceToString);
|
||||||
|
|
|
@ -57,8 +57,10 @@ static const std::vector<DrmHalTestParam> kAllInstances = [] {
|
||||||
return allInstanceUuidCombos;
|
return allInstanceUuidCombos;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalTest, testing::ValuesIn(kAllInstances),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalTest, testing::ValuesIn(kAllInstances),
|
||||||
PrintParamInstanceToString);
|
PrintParamInstanceToString);
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalClearkeyTestV1_2);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyTestV1_2, testing::ValuesIn(kAllInstances),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, DrmHalClearkeyTestV1_2, testing::ValuesIn(kAllInstances),
|
||||||
PrintParamInstanceToString);
|
PrintParamInstanceToString);
|
||||||
|
|
||||||
|
|
|
@ -100,6 +100,7 @@ TEST_P(DumpstateHidlTest, TestHandleWithTwoFds) {
|
||||||
native_handle_delete(handle);
|
native_handle_delete(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DumpstateHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, DumpstateHidlTest,
|
PerInstance, DumpstateHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IDumpstateDevice::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IDumpstateDevice::descriptor)),
|
||||||
|
|
|
@ -433,6 +433,7 @@ TEST_P(GatekeeperHidlTest, DeleteAllUsersTest) {
|
||||||
ALOGI("Testing deleteAllUsers done: rsp=%" PRIi32, delAllRsp.code);
|
ALOGI("Testing deleteAllUsers done: rsp=%" PRIi32, delAllRsp.code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(GatekeeperHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, GatekeeperHidlTest,
|
PerInstance, GatekeeperHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IGatekeeper::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IGatekeeper::descriptor)),
|
||||||
|
|
|
@ -478,6 +478,7 @@ TEST_P(GnssHalTest, SchedulingCapabilities) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(GnssHalTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, GnssHalTest,
|
PerInstance, GnssHalTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IGnss::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IGnss::descriptor)),
|
||||||
|
|
|
@ -58,6 +58,7 @@ TEST_P(HealthHidlTest, TestEnergyCounter) {
|
||||||
ASSERT_TRUE(result != Result::SUCCESS || energy > 0);
|
ASSERT_TRUE(result != Result::SUCCESS || energy > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(HealthHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, HealthHidlTest,
|
PerInstance, HealthHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IHealth::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IHealth::descriptor)),
|
||||||
|
|
|
@ -319,6 +319,7 @@ TEST_P(HealthHidlTest, getHealthInfo) {
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(HealthHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, HealthHidlTest,
|
PerInstance, HealthHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IHealth::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IHealth::descriptor)),
|
||||||
|
@ -669,6 +670,7 @@ TEST_P(BatteryTest, ConnectedAgainstStatusInHealthInfo) {
|
||||||
<< "You may want to try again later when getHealthInfo becomes stable.";
|
<< "You may want to try again later when getHealthInfo becomes stable.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BatteryTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, BatteryTest,
|
PerInstance, BatteryTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IHealth::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IHealth::descriptor)),
|
||||||
|
|
|
@ -258,6 +258,7 @@ TEST_P(HealthHidlTest, shouldKeepScreenOn) {
|
||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(HealthHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, HealthHidlTest,
|
PerInstance, HealthHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IHealth::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IHealth::descriptor)),
|
||||||
|
|
|
@ -160,6 +160,7 @@ TEST_P(HealthStorageHidlTest, GcNonNullCallback) {
|
||||||
cb->waitForResult(kDevGcTimeout + kDevGcTolerance + kRpcTime, Result::SUCCESS);
|
cb->waitForResult(kDevGcTimeout + kDevGcTolerance + kRpcTime, Result::SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(HealthStorageHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, HealthStorageHidlTest,
|
PerInstance, HealthStorageHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IStorage::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IStorage::descriptor)),
|
||||||
|
|
|
@ -594,6 +594,7 @@ TEST_P(ReaderAuthTests, ephemeralKeyNotInSessionTranscript) {
|
||||||
status.serviceSpecificErrorCode());
|
status.serviceSpecificErrorCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ReaderAuthTests);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
Identity, ReaderAuthTests,
|
Identity, ReaderAuthTests,
|
||||||
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
||||||
|
|
|
@ -465,6 +465,7 @@ TEST_P(UserAuthTests, MultipleRequestsSessionTranscriptChanges) {
|
||||||
true /* useSessionTranscript */);
|
true /* useSessionTranscript */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(UserAuthTests);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
Identity, UserAuthTests,
|
Identity, UserAuthTests,
|
||||||
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
||||||
|
|
|
@ -135,6 +135,7 @@ TEST_P(VtsAttestationTests, verifyAttestationWithVeryShortChallengeAndId) {
|
||||||
attestationApplicationId, hwInfo));
|
attestationApplicationId, hwInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VtsAttestationTests);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
Identity, VtsAttestationTests,
|
Identity, VtsAttestationTests,
|
||||||
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
||||||
|
|
|
@ -522,6 +522,7 @@ TEST_P(IdentityAidl, createAndRetrieveCredential) {
|
||||||
EXPECT_EQ(mac, calculatedMac);
|
EXPECT_EQ(mac, calculatedMac);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(IdentityAidl);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
Identity, IdentityAidl,
|
Identity, IdentityAidl,
|
||||||
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
||||||
|
|
|
@ -700,6 +700,7 @@ TEST_P(IdentityCredentialTests, verifyAccessControlProfileIdOutOfRange) {
|
||||||
ASSERT_EQ(IIdentityCredentialStore::STATUS_INVALID_DATA, result.serviceSpecificErrorCode());
|
ASSERT_EQ(IIdentityCredentialStore::STATUS_INVALID_DATA, result.serviceSpecificErrorCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(IdentityCredentialTests);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
Identity, IdentityCredentialTests,
|
Identity, IdentityCredentialTests,
|
||||||
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
testing::ValuesIn(android::getAidlHalInstanceNames(IIdentityCredentialStore::descriptor)),
|
||||||
|
|
|
@ -77,6 +77,7 @@ TEST_P(ConsumerIrHidlTest, BadFreqTest) {
|
||||||
EXPECT_FALSE(ir->transmit(-1, vec));
|
EXPECT_FALSE(ir->transmit(-1, vec));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ConsumerIrHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, ConsumerIrHidlTest,
|
PerInstance, ConsumerIrHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IConsumerIr::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IConsumerIr::descriptor)),
|
||||||
|
|
|
@ -4179,39 +4179,51 @@ TEST_P(KeyDeletionTest, DeleteAllKeys) {
|
||||||
static const auto kKeymasterDeviceChoices =
|
static const auto kKeymasterDeviceChoices =
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IKeymasterDevice::descriptor));
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IKeymasterDevice::descriptor));
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(NewKeyGenerationTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, NewKeyGenerationTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, NewKeyGenerationTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(KeymasterVersionTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, KeymasterVersionTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, KeymasterVersionTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(GetKeyCharacteristicsTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, GetKeyCharacteristicsTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, GetKeyCharacteristicsTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SigningOperationsTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, SigningOperationsTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, SigningOperationsTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VerificationOperationsTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, VerificationOperationsTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, VerificationOperationsTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ExportKeyTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, ExportKeyTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, ExportKeyTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ImportKeyTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, ImportKeyTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, ImportKeyTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(EncryptionOperationsTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, EncryptionOperationsTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, EncryptionOperationsTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(MaxOperationsTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, MaxOperationsTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, MaxOperationsTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AddEntropyTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, AddEntropyTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, AddEntropyTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AttestationTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, AttestationTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, AttestationTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(KeyDeletionTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, KeyDeletionTest, kKeymasterDeviceChoices,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, KeyDeletionTest, kKeymasterDeviceChoices,
|
||||||
android::hardware::PrintInstanceNameToString);
|
android::hardware::PrintInstanceNameToString);
|
||||||
|
|
||||||
|
|
|
@ -234,6 +234,7 @@ class KeymasterHidlTest : public ::testing::TestWithParam<std::string> {
|
||||||
};
|
};
|
||||||
|
|
||||||
#define INSTANTIATE_KEYMASTER_HIDL_TEST(name) \
|
#define INSTANTIATE_KEYMASTER_HIDL_TEST(name) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(name); \
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, name, \
|
INSTANTIATE_TEST_SUITE_P(PerInstance, name, \
|
||||||
testing::ValuesIn(KeymasterHidlTest::build_params()), \
|
testing::ValuesIn(KeymasterHidlTest::build_params()), \
|
||||||
android::hardware::PrintInstanceNameToString)
|
android::hardware::PrintInstanceNameToString)
|
||||||
|
|
|
@ -151,6 +151,7 @@ bool contains(hidl_vec<KeyParameter>& set, TypedTag typedTag) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#define INSTANTIATE_KEYMASTER_4_1_HIDL_TEST(name) \
|
#define INSTANTIATE_KEYMASTER_4_1_HIDL_TEST(name) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(name); \
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, name, \
|
INSTANTIATE_TEST_SUITE_P(PerInstance, name, \
|
||||||
testing::ValuesIn(Keymaster4_1HidlTest::build_params()), \
|
testing::ValuesIn(Keymaster4_1HidlTest::build_params()), \
|
||||||
android::hardware::PrintInstanceNameToString)
|
android::hardware::PrintInstanceNameToString)
|
||||||
|
|
|
@ -150,6 +150,7 @@ TEST_P(LightHidlTest, TestUnsupported) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(LightHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, LightHidlTest,
|
PerInstance, LightHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ILight::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ILight::descriptor)),
|
||||||
|
|
|
@ -159,6 +159,7 @@ TEST_P(LightsAidl, TestInvalidLightIdUnsupported) {
|
||||||
EXPECT_TRUE(status.exceptionCode() == Status::EX_UNSUPPORTED_OPERATION);
|
EXPECT_TRUE(status.exceptionCode() == Status::EX_UNSUPPORTED_OPERATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(LightsAidl);
|
||||||
INSTANTIATE_TEST_SUITE_P(Lights, LightsAidl,
|
INSTANTIATE_TEST_SUITE_P(Lights, LightsAidl,
|
||||||
testing::ValuesIn(android::getAidlHalInstanceNames(ILights::descriptor)),
|
testing::ValuesIn(android::getAidlHalInstanceNames(ILights::descriptor)),
|
||||||
android::PrintInstanceNameToString);
|
android::PrintInstanceNameToString);
|
||||||
|
|
|
@ -1152,6 +1152,7 @@ TEST_P(AudioDecHidlTest, FlushTest) {
|
||||||
kPortIndexOutput));
|
kPortIndexOutput));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AudioDecHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, AudioDecHidlTest, testing::ValuesIn(kTestParameters),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, AudioDecHidlTest, testing::ValuesIn(kTestParameters),
|
||||||
android::hardware::PrintInstanceTupleNameToString<>);
|
android::hardware::PrintInstanceTupleNameToString<>);
|
||||||
|
|
||||||
|
|
|
@ -486,6 +486,7 @@ TEST_P(AudioEncHidlTest, SimpleEncodeTest) {
|
||||||
kPortIndexOutput));
|
kPortIndexOutput));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AudioEncHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, AudioEncHidlTest, testing::ValuesIn(kTestParameters),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, AudioEncHidlTest, testing::ValuesIn(kTestParameters),
|
||||||
android::hardware::PrintInstanceTupleNameToString<>);
|
android::hardware::PrintInstanceTupleNameToString<>);
|
||||||
|
|
||||||
|
|
|
@ -1264,6 +1264,7 @@ TEST_P(ComponentHidlTest, DISABLED_PortEnableDisable_M) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ComponentHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, ComponentHidlTest, testing::ValuesIn(kTestParameters),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, ComponentHidlTest, testing::ValuesIn(kTestParameters),
|
||||||
android::hardware::PrintInstanceTupleNameToString<>);
|
android::hardware::PrintInstanceTupleNameToString<>);
|
||||||
|
|
||||||
|
|
|
@ -1419,6 +1419,7 @@ TEST_P(VideoDecHidlTest, FlushTest) {
|
||||||
kPortIndexOutput));
|
kPortIndexOutput));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VideoDecHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, VideoDecHidlTest, testing::ValuesIn(kTestParameters),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, VideoDecHidlTest, testing::ValuesIn(kTestParameters),
|
||||||
android::hardware::PrintInstanceTupleNameToString<>);
|
android::hardware::PrintInstanceTupleNameToString<>);
|
||||||
|
|
||||||
|
|
|
@ -1573,6 +1573,7 @@ TEST_P(VideoEncHidlTest, EncodeTestEOS) {
|
||||||
ASSERT_EQ(returnval, 0);
|
ASSERT_EQ(returnval, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VideoEncHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, VideoEncHidlTest, testing::ValuesIn(kTestParameters),
|
INSTANTIATE_TEST_SUITE_P(PerInstance, VideoEncHidlTest, testing::ValuesIn(kTestParameters),
|
||||||
android::hardware::PrintInstanceTupleNameToString<>);
|
android::hardware::PrintInstanceTupleNameToString<>);
|
||||||
|
|
||||||
|
|
|
@ -160,6 +160,7 @@ TEST_P(MemtrackHidlTest, GetMemoryTest) {
|
||||||
static_cast<uint32_t>(MemtrackType::NUM_TYPES));
|
static_cast<uint32_t>(MemtrackType::NUM_TYPES));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(MemtrackHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, MemtrackHidlTest,
|
PerInstance, MemtrackHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IMemtrack::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IMemtrack::descriptor)),
|
||||||
|
|
|
@ -43,6 +43,7 @@ std::vector<NamedModel> getNamedModels(const FilterNameFn& filter);
|
||||||
std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
|
std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
|
||||||
|
|
||||||
#define INSTANTIATE_GENERATED_TEST(TestSuite, filter) \
|
#define INSTANTIATE_GENERATED_TEST(TestSuite, filter) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(TestSuite); \
|
||||||
INSTANTIATE_TEST_SUITE_P(TestGenerated, TestSuite, \
|
INSTANTIATE_TEST_SUITE_P(TestGenerated, TestSuite, \
|
||||||
testing::Combine(testing::ValuesIn(getNamedDevices()), \
|
testing::Combine(testing::ValuesIn(getNamedDevices()), \
|
||||||
testing::ValuesIn(getNamedModels(filter))), \
|
testing::ValuesIn(getNamedModels(filter))), \
|
||||||
|
|
|
@ -42,6 +42,7 @@ std::string printNeuralnetworksHidlTest(
|
||||||
const testing::TestParamInfo<NeuralnetworksHidlTestParam>& info);
|
const testing::TestParamInfo<NeuralnetworksHidlTestParam>& info);
|
||||||
|
|
||||||
#define INSTANTIATE_DEVICE_TEST(TestSuite) \
|
#define INSTANTIATE_DEVICE_TEST(TestSuite) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(TestSuite); \
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, TestSuite, testing::ValuesIn(getNamedDevices()), \
|
INSTANTIATE_TEST_SUITE_P(PerInstance, TestSuite, testing::ValuesIn(getNamedDevices()), \
|
||||||
printNeuralnetworksHidlTest)
|
printNeuralnetworksHidlTest)
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ std::vector<NamedModel> getNamedModels(const FilterNameFn& filter);
|
||||||
std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
|
std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
|
||||||
|
|
||||||
#define INSTANTIATE_GENERATED_TEST(TestSuite, filter) \
|
#define INSTANTIATE_GENERATED_TEST(TestSuite, filter) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(TestSuite); \
|
||||||
INSTANTIATE_TEST_SUITE_P(TestGenerated, TestSuite, \
|
INSTANTIATE_TEST_SUITE_P(TestGenerated, TestSuite, \
|
||||||
testing::Combine(testing::ValuesIn(getNamedDevices()), \
|
testing::Combine(testing::ValuesIn(getNamedDevices()), \
|
||||||
testing::ValuesIn(getNamedModels(filter))), \
|
testing::ValuesIn(getNamedModels(filter))), \
|
||||||
|
|
|
@ -41,6 +41,7 @@ std::string printNeuralnetworksHidlTest(
|
||||||
const testing::TestParamInfo<NeuralnetworksHidlTestParam>& info);
|
const testing::TestParamInfo<NeuralnetworksHidlTestParam>& info);
|
||||||
|
|
||||||
#define INSTANTIATE_DEVICE_TEST(TestSuite) \
|
#define INSTANTIATE_DEVICE_TEST(TestSuite) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(TestSuite); \
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, TestSuite, testing::ValuesIn(getNamedDevices()), \
|
INSTANTIATE_TEST_SUITE_P(PerInstance, TestSuite, testing::ValuesIn(getNamedDevices()), \
|
||||||
printNeuralnetworksHidlTest)
|
printNeuralnetworksHidlTest)
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ std::vector<NamedModel> getNamedModels(const FilterNameFn& filter);
|
||||||
std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
|
std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
|
||||||
|
|
||||||
#define INSTANTIATE_GENERATED_TEST(TestSuite, filter) \
|
#define INSTANTIATE_GENERATED_TEST(TestSuite, filter) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(TestSuite); \
|
||||||
INSTANTIATE_TEST_SUITE_P(TestGenerated, TestSuite, \
|
INSTANTIATE_TEST_SUITE_P(TestGenerated, TestSuite, \
|
||||||
testing::Combine(testing::ValuesIn(getNamedDevices()), \
|
testing::Combine(testing::ValuesIn(getNamedDevices()), \
|
||||||
testing::ValuesIn(getNamedModels(filter))), \
|
testing::ValuesIn(getNamedModels(filter))), \
|
||||||
|
|
|
@ -42,6 +42,7 @@ std::string printNeuralnetworksHidlTest(
|
||||||
const testing::TestParamInfo<NeuralnetworksHidlTestParam>& info);
|
const testing::TestParamInfo<NeuralnetworksHidlTestParam>& info);
|
||||||
|
|
||||||
#define INSTANTIATE_DEVICE_TEST(TestSuite) \
|
#define INSTANTIATE_DEVICE_TEST(TestSuite) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(TestSuite); \
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, TestSuite, testing::ValuesIn(getNamedDevices()), \
|
INSTANTIATE_TEST_SUITE_P(PerInstance, TestSuite, testing::ValuesIn(getNamedDevices()), \
|
||||||
printNeuralnetworksHidlTest)
|
printNeuralnetworksHidlTest)
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ std::vector<NamedModel> getNamedModels(const FilterNameFn& filter);
|
||||||
std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
|
std::string printGeneratedTest(const testing::TestParamInfo<GeneratedTestParam>& info);
|
||||||
|
|
||||||
#define INSTANTIATE_GENERATED_TEST(TestSuite, filter) \
|
#define INSTANTIATE_GENERATED_TEST(TestSuite, filter) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(TestSuite); \
|
||||||
INSTANTIATE_TEST_SUITE_P(TestGenerated, TestSuite, \
|
INSTANTIATE_TEST_SUITE_P(TestGenerated, TestSuite, \
|
||||||
testing::Combine(testing::ValuesIn(getNamedDevices()), \
|
testing::Combine(testing::ValuesIn(getNamedDevices()), \
|
||||||
testing::ValuesIn(getNamedModels(filter))), \
|
testing::ValuesIn(getNamedModels(filter))), \
|
||||||
|
|
|
@ -42,6 +42,7 @@ std::string printNeuralnetworksHidlTest(
|
||||||
const testing::TestParamInfo<NeuralnetworksHidlTestParam>& info);
|
const testing::TestParamInfo<NeuralnetworksHidlTestParam>& info);
|
||||||
|
|
||||||
#define INSTANTIATE_DEVICE_TEST(TestSuite) \
|
#define INSTANTIATE_DEVICE_TEST(TestSuite) \
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(TestSuite); \
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, TestSuite, testing::ValuesIn(getNamedDevices()), \
|
INSTANTIATE_TEST_SUITE_P(PerInstance, TestSuite, testing::ValuesIn(getNamedDevices()), \
|
||||||
printNeuralnetworksHidlTest)
|
printNeuralnetworksHidlTest)
|
||||||
|
|
||||||
|
|
|
@ -578,6 +578,7 @@ TEST_P(NfcHidlTest, OpenAfterOpen) {
|
||||||
EXPECT_EQ(NfcStatus::OK, nfc_->open(nfc_cb_));
|
EXPECT_EQ(NfcStatus::OK, nfc_->open(nfc_cb_));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(NfcHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, NfcHidlTest,
|
PerInstance, NfcHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(INfc::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(INfc::descriptor)),
|
||||||
|
|
|
@ -211,6 +211,7 @@ TEST_P(NfcHidlTest, GetConfig) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(NfcHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, NfcHidlTest,
|
PerInstance, NfcHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(INfc::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(INfc::descriptor)),
|
||||||
|
|
|
@ -155,6 +155,7 @@ TEST_P(NfcHidlTest, GetExtendedConfig) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(NfcHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, NfcHidlTest,
|
PerInstance, NfcHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(INfc::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(INfc::descriptor)),
|
||||||
|
|
|
@ -188,6 +188,7 @@ TEST_P(OemLockHidlTest, CarrierUnlock) {
|
||||||
ASSERT_EQ(allowed, originallyAllowed);
|
ASSERT_EQ(allowed, originallyAllowed);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OemLockHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, OemLockHidlTest,
|
PerInstance, OemLockHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IOemLock::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IOemLock::descriptor)),
|
||||||
|
|
|
@ -178,6 +178,7 @@ TEST_P(PowerHidlTest, GetPlatformLowPowerStats) {
|
||||||
ASSERT_TRUE(s == Status::SUCCESS || s == Status::FILESYSTEM_ERROR);
|
ASSERT_TRUE(s == Status::SUCCESS || s == Status::FILESYSTEM_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(PowerHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, PowerHidlTest,
|
PerInstance, PowerHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPower::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPower::descriptor)),
|
||||||
|
|
|
@ -91,6 +91,7 @@ TEST_P(PowerHidlTest, PowerHintAsync) {
|
||||||
} while (std::next_permutation(hints2.begin(), hints2.end(), compareHints));
|
} while (std::next_permutation(hints2.begin(), hints2.end(), compareHints));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(PowerHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, PowerHidlTest,
|
PerInstance, PowerHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPower::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPower::descriptor)),
|
||||||
|
|
|
@ -76,6 +76,7 @@ TEST_P(PowerHidlTest, PowerHintAsync_1_2) {
|
||||||
} while (std::next_permutation(hints2.begin(), hints2.end(), compareHints));
|
} while (std::next_permutation(hints2.begin(), hints2.end(), compareHints));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(PowerHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, PowerHidlTest,
|
PerInstance, PowerHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPower::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPower::descriptor)),
|
||||||
|
|
|
@ -41,6 +41,7 @@ TEST_P(PowerHidlTest, PowerHintAsync_1_3) {
|
||||||
ASSERT_TRUE(power->powerHintAsync_1_3(PowerHint::EXPENSIVE_RENDERING, 0).isOk());
|
ASSERT_TRUE(power->powerHintAsync_1_3(PowerHint::EXPENSIVE_RENDERING, 0).isOk());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(PowerHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, PowerHidlTest,
|
PerInstance, PowerHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPower::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPower::descriptor)),
|
||||||
|
|
|
@ -126,6 +126,7 @@ TEST_P(PowerAidl, hasFixedPerformance) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(PowerAidl);
|
||||||
INSTANTIATE_TEST_SUITE_P(Power, PowerAidl,
|
INSTANTIATE_TEST_SUITE_P(Power, PowerAidl,
|
||||||
testing::ValuesIn(android::getAidlHalInstanceNames(IPower::descriptor)),
|
testing::ValuesIn(android::getAidlHalInstanceNames(IPower::descriptor)),
|
||||||
android::PrintInstanceNameToString);
|
android::PrintInstanceNameToString);
|
||||||
|
|
|
@ -556,6 +556,7 @@ TEST_P(PowerStatsHidlTest, StreamEnergyData) {
|
||||||
thread1.join();
|
thread1.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(PowerStatsHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, PowerStatsHidlTest,
|
PerInstance, PowerStatsHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPowerStats::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IPowerStats::descriptor)),
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <hidl/ServiceManagement.h>
|
#include <hidl/ServiceManagement.h>
|
||||||
#include <radio_hidl_hal_utils_v1_0.h>
|
#include <radio_hidl_hal_utils_v1_0.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
||||||
::android::hardware::radio::V1_0::IRadio::descriptor)),
|
::android::hardware::radio::V1_0::IRadio::descriptor)),
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <hidl/ServiceManagement.h>
|
#include <hidl/ServiceManagement.h>
|
||||||
#include <sap_hidl_hal_utils.h>
|
#include <sap_hidl_hal_utils.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SapHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, SapHidlTest,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, SapHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
||||||
::android::hardware::radio::V1_0::ISap::descriptor)),
|
::android::hardware::radio::V1_0::ISap::descriptor)),
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <hidl/ServiceManagement.h>
|
#include <hidl/ServiceManagement.h>
|
||||||
#include <radio_hidl_hal_utils_v1_1.h>
|
#include <radio_hidl_hal_utils_v1_1.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioHidlTest_v1_1);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_1,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_1,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
||||||
::android::hardware::radio::V1_1::IRadio::descriptor)),
|
::android::hardware::radio::V1_1::IRadio::descriptor)),
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <hidl/ServiceManagement.h>
|
#include <hidl/ServiceManagement.h>
|
||||||
#include <radio_hidl_hal_utils_v1_2.h>
|
#include <radio_hidl_hal_utils_v1_2.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioHidlTest_v1_2);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_2,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_2,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
||||||
::android::hardware::radio::V1_2::IRadio::descriptor)),
|
::android::hardware::radio::V1_2::IRadio::descriptor)),
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <hidl/ServiceManagement.h>
|
#include <hidl/ServiceManagement.h>
|
||||||
#include <radio_hidl_hal_utils_v1_3.h>
|
#include <radio_hidl_hal_utils_v1_3.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioHidlTest_v1_3);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_3,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_3,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
||||||
::android::hardware::radio::V1_3::IRadio::descriptor)),
|
::android::hardware::radio::V1_3::IRadio::descriptor)),
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <hidl/ServiceManagement.h>
|
#include <hidl/ServiceManagement.h>
|
||||||
#include <radio_hidl_hal_utils_v1_4.h>
|
#include <radio_hidl_hal_utils_v1_4.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioHidlTest_v1_4);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_4,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_4,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
||||||
::android::hardware::radio::V1_4::IRadio::descriptor)),
|
::android::hardware::radio::V1_4::IRadio::descriptor)),
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include <radio_hidl_hal_utils_v1_5.h>
|
#include <radio_hidl_hal_utils_v1_5.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioHidlTest_v1_5);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_5,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_5,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
||||||
android::hardware::radio::V1_5::IRadio::descriptor)),
|
android::hardware::radio::V1_5::IRadio::descriptor)),
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include <radio_hidl_hal_utils_v1_6.h>
|
#include <radio_hidl_hal_utils_v1_6.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioHidlTest_v1_6);
|
||||||
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_6,
|
INSTANTIATE_TEST_SUITE_P(PerInstance, RadioHidlTest_v1_6,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(
|
||||||
android::hardware::radio::V1_6::IRadio::descriptor)),
|
android::hardware::radio::V1_6::IRadio::descriptor)),
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include <radio_config_hidl_hal_utils.h>
|
#include <radio_config_hidl_hal_utils.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioConfigHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, RadioConfigHidlTest,
|
PerInstance, RadioConfigHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IRadioConfig::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IRadioConfig::descriptor)),
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include <radio_config_hidl_hal_utils.h>
|
#include <radio_config_hidl_hal_utils.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioConfigHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, RadioConfigHidlTest,
|
PerInstance, RadioConfigHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IRadioConfig::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IRadioConfig::descriptor)),
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include <radio_config_hidl_hal_utils.h>
|
#include <radio_config_hidl_hal_utils.h>
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioConfigHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, RadioConfigHidlTest,
|
PerInstance, RadioConfigHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IRadioConfig::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IRadioConfig::descriptor)),
|
||||||
|
|
|
@ -34,6 +34,7 @@ void RenderscriptHidlTest::TearDown() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RenderscriptHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, RenderscriptHidlTest,
|
PerInstance, RenderscriptHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IDevice::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IDevice::descriptor)),
|
||||||
|
|
|
@ -204,6 +204,7 @@ TEST_P(SecureElementHidlTest, openCloseLogicalChannel) {
|
||||||
EXPECT_EQ(SecureElementStatus::SUCCESS, se_->closeChannel(response.channelNumber));
|
EXPECT_EQ(SecureElementStatus::SUCCESS, se_->closeChannel(response.channelNumber));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SecureElementHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, SecureElementHidlTest,
|
PerInstance, SecureElementHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISecureElement::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISecureElement::descriptor)),
|
||||||
|
|
|
@ -88,6 +88,7 @@ TEST_P(SecureElementHidlTest, isCardPresent) {
|
||||||
EXPECT_TRUE(se_->isCardPresent());
|
EXPECT_TRUE(se_->isCardPresent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SecureElementHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, SecureElementHidlTest,
|
PerInstance, SecureElementHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISecureElement::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISecureElement::descriptor)),
|
||||||
|
|
|
@ -100,6 +100,7 @@ TEST_P(SecureElementHidlTest, Reset) {
|
||||||
EXPECT_TRUE(res.args->state_);
|
EXPECT_TRUE(res.args->state_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SecureElementHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, SecureElementHidlTest,
|
PerInstance, SecureElementHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISecureElement::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISecureElement::descriptor)),
|
||||||
|
|
|
@ -449,6 +449,7 @@ TEST_P(SensorsHidlTest, MagnetometerGrallocDirectReportOperationVeryFast) {
|
||||||
RateLevel::VERY_FAST, NullChecker());
|
RateLevel::VERY_FAST, NullChecker());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SensorsHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, SensorsHidlTest,
|
PerInstance, SensorsHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISensors::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISensors::descriptor)),
|
||||||
|
|
|
@ -67,6 +67,7 @@ TEST_P(SoundTriggerHidlTest, GetModelStateInvalidModel) {
|
||||||
EXPECT_TRUE(hidlReturn.isOk());
|
EXPECT_TRUE(hidlReturn.isOk());
|
||||||
EXPECT_EQ(-ENOSYS, hidlReturn);
|
EXPECT_EQ(-ENOSYS, hidlReturn);
|
||||||
}
|
}
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SoundTriggerHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, SoundTriggerHidlTest,
|
PerInstance, SoundTriggerHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISoundTriggerHw::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(ISoundTriggerHw::descriptor)),
|
||||||
|
|
|
@ -176,6 +176,7 @@ TEST_P(OffloadConfigHidlTest, TestSetHandle2OnlyNotOk) {
|
||||||
ASSERT_TRUE(ret.isOk());
|
ASSERT_TRUE(ret.isOk());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(OffloadConfigHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, OffloadConfigHidlTest,
|
PerInstance, OffloadConfigHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IOffloadConfig::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IOffloadConfig::descriptor)),
|
||||||
|
|
|
@ -208,6 +208,7 @@ TEST_P(ThermalHidlTest, CoolingDeviceTest) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ThermalHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, ThermalHidlTest,
|
PerInstance, ThermalHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IThermal::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IThermal::descriptor)),
|
||||||
|
|
|
@ -100,6 +100,7 @@ TEST_P(ThermalHidlTest, NotifyThrottlingTest) {
|
||||||
EXPECT_EQ(kThrottleTemp, res.args->temperature);
|
EXPECT_EQ(kThrottleTemp, res.args->temperature);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ThermalHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, ThermalHidlTest,
|
PerInstance, ThermalHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IThermal::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IThermal::descriptor)),
|
||||||
|
|
|
@ -257,6 +257,7 @@ TEST_P(ThermalHidlTest, CoolingDeviceTest) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(ThermalHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, ThermalHidlTest,
|
PerInstance, ThermalHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IThermal::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IThermal::descriptor)),
|
||||||
|
|
|
@ -298,6 +298,7 @@ TEST_P(UsbHidlTest, switchDataRole) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(UsbHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, UsbHidlTest,
|
PerInstance, UsbHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IUsb::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IUsb::descriptor)),
|
||||||
|
|
|
@ -169,6 +169,7 @@ TEST_P(UsbHidlTest, queryPortStatus) {
|
||||||
EXPECT_EQ(PortMode::NONE, res.args->usb_last_port_status.status.supportedModes);
|
EXPECT_EQ(PortMode::NONE, res.args->usb_last_port_status.status.supportedModes);
|
||||||
EXPECT_EQ(Status::SUCCESS, res.args->usb_last_status);
|
EXPECT_EQ(Status::SUCCESS, res.args->usb_last_status);
|
||||||
}
|
}
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(UsbHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, UsbHidlTest,
|
PerInstance, UsbHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IUsb::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IUsb::descriptor)),
|
||||||
|
|
|
@ -134,6 +134,7 @@ TEST_P(VibratorHidlTest, SetAmplitudeReturnUnsupportedOperationIfNotSupported) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VibratorHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, VibratorHidlTest,
|
PerInstance, VibratorHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVibrator::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVibrator::descriptor)),
|
||||||
|
|
|
@ -108,6 +108,7 @@ TEST_P(VibratorHidlTest_1_1, PerformEffect_1_1_BadStrength_BelowValidRange) {
|
||||||
EXPECT_OK(vibrator->perform_1_1(Effect_1_1::CLICK, badStrength, validatePerformEffectBadInput));
|
EXPECT_OK(vibrator->perform_1_1(Effect_1_1::CLICK, badStrength, validatePerformEffectBadInput));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VibratorHidlTest_1_1);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, VibratorHidlTest_1_1,
|
PerInstance, VibratorHidlTest_1_1,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVibrator::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVibrator::descriptor)),
|
||||||
|
|
|
@ -116,6 +116,7 @@ TEST_P(VibratorHidlTest_1_2, PerformEffect_1_2_BadStrength_BelowValidRange) {
|
||||||
EXPECT_OK(vibrator->perform_1_2(Effect::THUD, badStrength, validatePerformEffectBadInput));
|
EXPECT_OK(vibrator->perform_1_2(Effect::THUD, badStrength, validatePerformEffectBadInput));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VibratorHidlTest_1_2);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, VibratorHidlTest_1_2,
|
PerInstance, VibratorHidlTest_1_2,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVibrator::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVibrator::descriptor)),
|
||||||
|
|
|
@ -131,6 +131,7 @@ TEST_P(VibratorHidlTest_1_3, PerformEffect_1_3_BadStrength_BelowValidRange) {
|
||||||
validatePerformEffectUnsupportedOperation));
|
validatePerformEffectUnsupportedOperation));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VibratorHidlTest_1_3);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, VibratorHidlTest_1_3,
|
PerInstance, VibratorHidlTest_1_3,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVibrator::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVibrator::descriptor)),
|
||||||
|
|
|
@ -457,6 +457,7 @@ TEST_P(VibratorAidl, AlwaysOn) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VibratorAidl);
|
||||||
INSTANTIATE_TEST_SUITE_P(Vibrator, VibratorAidl,
|
INSTANTIATE_TEST_SUITE_P(Vibrator, VibratorAidl,
|
||||||
testing::ValuesIn(android::getAidlHalInstanceNames(IVibrator::descriptor)),
|
testing::ValuesIn(android::getAidlHalInstanceNames(IVibrator::descriptor)),
|
||||||
android::PrintInstanceNameToString);
|
android::PrintInstanceNameToString);
|
||||||
|
|
|
@ -63,6 +63,7 @@ TEST_P(VrHidlTest, ReInit) {
|
||||||
EXPECT_TRUE(vr->setVrMode(false).isOk());
|
EXPECT_TRUE(vr->setVrMode(false).isOk());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(VrHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, VrHidlTest,
|
PerInstance, VrHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVr::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IVr::descriptor)),
|
||||||
|
|
|
@ -336,6 +336,7 @@ TEST_P(WeaverHidlTest, ReadWithTooLargeKeyFails) {
|
||||||
EXPECT_EQ(timeout, 0u);
|
EXPECT_EQ(timeout, 0u);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(WeaverHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, WeaverHidlTest,
|
PerInstance, WeaverHidlTest,
|
||||||
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IWeaver::descriptor)),
|
testing::ValuesIn(android::hardware::getAllHalInstanceNames(IWeaver::descriptor)),
|
||||||
|
|
|
@ -262,6 +262,7 @@ TEST_P(HostapdHidlTest, AddInvalidPskAccessPointWithoutAcs) {
|
||||||
*/
|
*/
|
||||||
TEST_P(HostapdHidlTest, Terminate) { hostapd_->terminate(); }
|
TEST_P(HostapdHidlTest, Terminate) { hostapd_->terminate(); }
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(HostapdHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, HostapdHidlTest,
|
PerInstance, HostapdHidlTest,
|
||||||
testing::Combine(
|
testing::Combine(
|
||||||
|
|
|
@ -210,6 +210,7 @@ TEST_P(WifiOffloadHidlTest, getError) {
|
||||||
ASSERT_EQ(true, res.no_timeout);
|
ASSERT_EQ(true, res.no_timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(WifiOffloadHidlTest);
|
||||||
INSTANTIATE_TEST_SUITE_P(
|
INSTANTIATE_TEST_SUITE_P(
|
||||||
PerInstance, WifiOffloadHidlTest,
|
PerInstance, WifiOffloadHidlTest,
|
||||||
testing::ValuesIn(
|
testing::ValuesIn(
|
||||||
|
|
Loading…
Reference in a new issue