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