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
19 #include "radio_config_utils.h"
20 #include "radio_data_utils.h"
21 #include "radio_messaging_utils.h"
22 #include "radio_modem_utils.h"
23 #include "radio_network_utils.h"
24 #include "radio_sim_utils.h"
25 #include "radio_voice_utils.h"
26
27 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioConfigTest);
28 INSTANTIATE_TEST_SUITE_P(
29 PerInstance, RadioConfigTest,
30 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioConfig::descriptor)),
31 android::PrintInstanceNameToString);
32
33 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioDataTest);
34 INSTANTIATE_TEST_SUITE_P(
35 PerInstance, RadioDataTest,
36 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioData::descriptor)),
37 android::PrintInstanceNameToString);
38
39 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioMessagingTest);
40 INSTANTIATE_TEST_SUITE_P(
41 PerInstance, RadioMessagingTest,
42 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioMessaging::descriptor)),
43 android::PrintInstanceNameToString);
44
45 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioModemTest);
46 INSTANTIATE_TEST_SUITE_P(
47 PerInstance, RadioModemTest,
48 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioModem::descriptor)),
49 android::PrintInstanceNameToString);
50
51 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioNetworkTest);
52 INSTANTIATE_TEST_SUITE_P(
53 PerInstance, RadioNetworkTest,
54 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioNetwork::descriptor)),
55 android::PrintInstanceNameToString);
56
57 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioSimTest);
58 INSTANTIATE_TEST_SUITE_P(PerInstance, RadioSimTest,
59 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioSim::descriptor)),
60 android::PrintInstanceNameToString);
61
62 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioVoiceTest);
63 INSTANTIATE_TEST_SUITE_P(
64 PerInstance, RadioVoiceTest,
65 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioVoice::descriptor)),
66 android::PrintInstanceNameToString);
67
main(int argc,char ** argv)68 int main(int argc, char** argv) {
69 ::testing::InitGoogleTest(&argc, argv);
70 ABinderProcess_setThreadPoolMaxThreadCount(1);
71 ABinderProcess_startThreadPool();
72 return RUN_ALL_TESTS();
73 }
74