Sarah Chin | d2a4119 | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2021 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 <android/binder_process.h> |
| 18 | |
Sarah Chin | 91997ac | 2021-12-29 00:35:12 -0800 | [diff] [blame] | 19 | #include "radio_config_utils.h" |
Sarah Chin | d2a4119 | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 20 | #include "radio_data_utils.h" |
| 21 | #include "radio_messaging_utils.h" |
| 22 | #include "radio_modem_utils.h" |
| 23 | #include "radio_network_utils.h" |
Pomai Ahlo | f3ce10b | 2022-12-12 13:58:55 -0800 | [diff] [blame] | 24 | #include "radio_sap_utils.h" |
Sarah Chin | d2a4119 | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 25 | #include "radio_sim_utils.h" |
| 26 | #include "radio_voice_utils.h" |
| 27 | |
Sarah Chin | 91997ac | 2021-12-29 00:35:12 -0800 | [diff] [blame] | 28 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioConfigTest); |
| 29 | INSTANTIATE_TEST_SUITE_P( |
| 30 | PerInstance, RadioConfigTest, |
| 31 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioConfig::descriptor)), |
| 32 | android::PrintInstanceNameToString); |
| 33 | |
Sarah Chin | d2a4119 | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 34 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioDataTest); |
| 35 | INSTANTIATE_TEST_SUITE_P( |
| 36 | PerInstance, RadioDataTest, |
| 37 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioData::descriptor)), |
| 38 | android::PrintInstanceNameToString); |
| 39 | |
| 40 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioMessagingTest); |
| 41 | INSTANTIATE_TEST_SUITE_P( |
| 42 | PerInstance, RadioMessagingTest, |
| 43 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioMessaging::descriptor)), |
| 44 | android::PrintInstanceNameToString); |
| 45 | |
| 46 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioModemTest); |
| 47 | INSTANTIATE_TEST_SUITE_P( |
| 48 | PerInstance, RadioModemTest, |
| 49 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioModem::descriptor)), |
| 50 | android::PrintInstanceNameToString); |
| 51 | |
| 52 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioNetworkTest); |
| 53 | INSTANTIATE_TEST_SUITE_P( |
| 54 | PerInstance, RadioNetworkTest, |
| 55 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioNetwork::descriptor)), |
| 56 | android::PrintInstanceNameToString); |
| 57 | |
Pomai Ahlo | f3ce10b | 2022-12-12 13:58:55 -0800 | [diff] [blame] | 58 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioSapTest); |
| 59 | INSTANTIATE_TEST_SUITE_P(PerInstance, SapTest, |
| 60 | testing::ValuesIn(android::getAidlHalInstanceNames(ISap::descriptor)), |
| 61 | android::PrintInstanceNameToString); |
| 62 | |
Sarah Chin | d2a4119 | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 63 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioSimTest); |
| 64 | INSTANTIATE_TEST_SUITE_P(PerInstance, RadioSimTest, |
| 65 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioSim::descriptor)), |
| 66 | android::PrintInstanceNameToString); |
| 67 | |
| 68 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioVoiceTest); |
| 69 | INSTANTIATE_TEST_SUITE_P( |
| 70 | PerInstance, RadioVoiceTest, |
| 71 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioVoice::descriptor)), |
| 72 | android::PrintInstanceNameToString); |
| 73 | |
| 74 | int main(int argc, char** argv) { |
| 75 | ::testing::InitGoogleTest(&argc, argv); |
| 76 | ABinderProcess_setThreadPoolMaxThreadCount(1); |
| 77 | ABinderProcess_startThreadPool(); |
| 78 | return RUN_ALL_TESTS(); |
| 79 | } |