blob: 67a2672c9b8c9c78af0f172a7822d57c1ad4cbaa [file] [log] [blame]
Sarah Chinfc5603b2021-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 Chinc83bce42021-12-29 00:35:12 -080019#include "radio_config_utils.h"
Sarah Chinfc5603b2021-12-21 11:34:00 -080020#include "radio_data_utils.h"
Hunsuk Choi9d4f38c2021-12-16 21:50:04 +000021#include "radio_ims_utils.h"
Sarah Chinfc5603b2021-12-21 11:34:00 -080022#include "radio_messaging_utils.h"
23#include "radio_modem_utils.h"
24#include "radio_network_utils.h"
25#include "radio_sim_utils.h"
26#include "radio_voice_utils.h"
27
Sarah Chinc83bce42021-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 Chinfc5603b2021-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
58GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioSimTest);
59INSTANTIATE_TEST_SUITE_P(PerInstance, RadioSimTest,
60 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioSim::descriptor)),
61 android::PrintInstanceNameToString);
62
63GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioVoiceTest);
64INSTANTIATE_TEST_SUITE_P(
65 PerInstance, RadioVoiceTest,
66 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioVoice::descriptor)),
67 android::PrintInstanceNameToString);
68
Hunsuk Choi9d4f38c2021-12-16 21:50:04 +000069GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(RadioImsTest);
70INSTANTIATE_TEST_SUITE_P(
71 PerInstance, RadioImsTest,
72 testing::ValuesIn(android::getAidlHalInstanceNames(IRadioIms::descriptor)),
73 android::PrintInstanceNameToString);
74
Sarah Chinfc5603b2021-12-21 11:34:00 -080075int main(int argc, char** argv) {
76 ::testing::InitGoogleTest(&argc, argv);
77 ABinderProcess_setThreadPoolMaxThreadCount(1);
78 ABinderProcess_startThreadPool();
79 return RUN_ALL_TESTS();
80}