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