Sarah Chin | fc5603b | 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 | c83bce4 | 2021-12-29 00:35:12 -0800 | [diff] [blame] | 19 | #include "radio_config_utils.h" |
Sarah Chin | fc5603b | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 20 | #include "radio_data_utils.h" |
Hunsuk Choi | 9d4f38c | 2021-12-16 21:50:04 +0000 | [diff] [blame] | 21 | #include "radio_ims_utils.h" |
Helen | e4af3c6 | 2023-01-02 04:26:31 +0000 | [diff] [blame] | 22 | #include "radio_imsmedia_utils.h" |
Sarah Chin | fc5603b | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 23 | #include "radio_messaging_utils.h" |
| 24 | #include "radio_modem_utils.h" |
| 25 | #include "radio_network_utils.h" |
Pomai Ahlo | dc1e619 | 2022-12-12 13:58:55 -0800 | [diff] [blame] | 26 | #include "radio_sap_utils.h" |
Sarah Chin | fc5603b | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 27 | #include "radio_sim_utils.h" |
| 28 | #include "radio_voice_utils.h" |
| 29 | |
Sarah Chin | c83bce4 | 2021-12-29 00:35:12 -0800 | [diff] [blame] | 30 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioConfigTest); |
| 31 | INSTANTIATE_TEST_SUITE_P( |
| 32 | PerInstance, RadioConfigTest, |
| 33 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioConfig::descriptor)), |
| 34 | android::PrintInstanceNameToString); |
| 35 | |
Sarah Chin | fc5603b | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 36 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioDataTest); |
| 37 | INSTANTIATE_TEST_SUITE_P( |
| 38 | PerInstance, RadioDataTest, |
| 39 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioData::descriptor)), |
| 40 | android::PrintInstanceNameToString); |
| 41 | |
| 42 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioMessagingTest); |
| 43 | INSTANTIATE_TEST_SUITE_P( |
| 44 | PerInstance, RadioMessagingTest, |
| 45 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioMessaging::descriptor)), |
| 46 | android::PrintInstanceNameToString); |
| 47 | |
| 48 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioModemTest); |
| 49 | INSTANTIATE_TEST_SUITE_P( |
| 50 | PerInstance, RadioModemTest, |
| 51 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioModem::descriptor)), |
| 52 | android::PrintInstanceNameToString); |
| 53 | |
| 54 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioNetworkTest); |
| 55 | INSTANTIATE_TEST_SUITE_P( |
| 56 | PerInstance, RadioNetworkTest, |
| 57 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioNetwork::descriptor)), |
| 58 | android::PrintInstanceNameToString); |
| 59 | |
Pomai Ahlo | abb09bd | 2023-01-03 13:49:45 -0800 | [diff] [blame] | 60 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SapTest); |
Pomai Ahlo | dc1e619 | 2022-12-12 13:58:55 -0800 | [diff] [blame] | 61 | INSTANTIATE_TEST_SUITE_P(PerInstance, SapTest, |
| 62 | testing::ValuesIn(android::getAidlHalInstanceNames(ISap::descriptor)), |
| 63 | android::PrintInstanceNameToString); |
| 64 | |
Sarah Chin | fc5603b | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 65 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioSimTest); |
| 66 | INSTANTIATE_TEST_SUITE_P(PerInstance, RadioSimTest, |
| 67 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioSim::descriptor)), |
| 68 | android::PrintInstanceNameToString); |
| 69 | |
| 70 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioVoiceTest); |
| 71 | INSTANTIATE_TEST_SUITE_P( |
| 72 | PerInstance, RadioVoiceTest, |
| 73 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioVoice::descriptor)), |
| 74 | android::PrintInstanceNameToString); |
| 75 | |
Hunsuk Choi | 9d4f38c | 2021-12-16 21:50:04 +0000 | [diff] [blame] | 76 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioImsTest); |
| 77 | INSTANTIATE_TEST_SUITE_P( |
| 78 | PerInstance, RadioImsTest, |
| 79 | testing::ValuesIn(android::getAidlHalInstanceNames(IRadioIms::descriptor)), |
| 80 | android::PrintInstanceNameToString); |
| 81 | |
Helen | e4af3c6 | 2023-01-02 04:26:31 +0000 | [diff] [blame] | 82 | GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioImsMediaTest); |
| 83 | INSTANTIATE_TEST_SUITE_P(PerInstance, RadioImsMediaTest, |
| 84 | testing::ValuesIn(android::getAidlHalInstanceNames(IImsMedia::descriptor)), |
| 85 | android::PrintInstanceNameToString); |
| 86 | |
Sarah Chin | fc5603b | 2021-12-21 11:34:00 -0800 | [diff] [blame] | 87 | int main(int argc, char** argv) { |
| 88 | ::testing::InitGoogleTest(&argc, argv); |
| 89 | ABinderProcess_setThreadPoolMaxThreadCount(1); |
| 90 | ABinderProcess_startThreadPool(); |
| 91 | return RUN_ALL_TESTS(); |
| 92 | } |