blob: 03d3c5a33c32cf9cd0683dd000775860dbc428cb [file] [log] [blame]
Sarah Chind2a41192021-12-21 11:34:00 -08001/*
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 Chin91997ac2021-12-29 00:35:12 -080019#include "radio_config_utils.h"
Sarah Chind2a41192021-12-21 11:34:00 -080020#include "radio_data_utils.h"
21#include "radio_messaging_utils.h"
22#include "radio_modem_utils.h"
23#include "radio_network_utils.h"
Pomai Ahlof3ce10b2022-12-12 13:58:55 -080024#include "radio_sap_utils.h"
Sarah Chind2a41192021-12-21 11:34:00 -080025#include "radio_sim_utils.h"
26#include "radio_voice_utils.h"
27
Sarah Chin91997ac2021-12-29 00:35:12 -080028GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioConfigTest);
29INSTANTIATE_TEST_SUITE_P(
30 PerInstance, RadioConfigTest,
31 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioConfig::descriptor)),
32 android::PrintInstanceNameToString);
33
Sarah Chind2a41192021-12-21 11:34:00 -080034GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioDataTest);
35INSTANTIATE_TEST_SUITE_P(
36 PerInstance, RadioDataTest,
37 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioData::descriptor)),
38 android::PrintInstanceNameToString);
39
40GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioMessagingTest);
41INSTANTIATE_TEST_SUITE_P(
42 PerInstance, RadioMessagingTest,
43 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioMessaging::descriptor)),
44 android::PrintInstanceNameToString);
45
46GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioModemTest);
47INSTANTIATE_TEST_SUITE_P(
48 PerInstance, RadioModemTest,
49 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioModem::descriptor)),
50 android::PrintInstanceNameToString);
51
52GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioNetworkTest);
53INSTANTIATE_TEST_SUITE_P(
54 PerInstance, RadioNetworkTest,
55 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioNetwork::descriptor)),
56 android::PrintInstanceNameToString);
57
Pomai Ahlof3ce10b2022-12-12 13:58:55 -080058GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioSapTest);
59INSTANTIATE_TEST_SUITE_P(PerInstance, SapTest,
60 testing::ValuesIn(android::getAidlHalInstanceNames(ISap::descriptor)),
61 android::PrintInstanceNameToString);
62
Sarah Chind2a41192021-12-21 11:34:00 -080063GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioSimTest);
64INSTANTIATE_TEST_SUITE_P(PerInstance, RadioSimTest,
65 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioSim::descriptor)),
66 android::PrintInstanceNameToString);
67
68GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioVoiceTest);
69INSTANTIATE_TEST_SUITE_P(
70 PerInstance, RadioVoiceTest,
71 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioVoice::descriptor)),
72 android::PrintInstanceNameToString);
73
74int main(int argc, char** argv) {
75 ::testing::InitGoogleTest(&argc, argv);
76 ABinderProcess_setThreadPoolMaxThreadCount(1);
77 ABinderProcess_startThreadPool();
78 return RUN_ALL_TESTS();
79}