1 /* 2 * Copyright (C) 2017 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 #ifndef HIDL_TEST_H_ 18 #define HIDL_TEST_H_ 19 20 #include <android/hardware/tests/bar/1.0/IBar.h> 21 #include <android/hardware/tests/baz/1.0/IBaz.h> 22 #include <android/hardware/tests/hash/1.0/IHash.h> 23 #include <android/hardware/tests/inheritance/1.0/IChild.h> 24 #include <android/hardware/tests/inheritance/1.0/IFetcher.h> 25 #include <android/hardware/tests/inheritance/1.0/IParent.h> 26 #include <android/hardware/tests/memory/1.0/IMemoryTest.h> 27 #include <android/hardware/tests/multithread/1.0/IMultithread.h> 28 #include <android/hardware/tests/safeunion/1.0/ISafeUnion.h> 29 #include <android/hardware/tests/safeunion/cpp/1.0/ICppSafeUnion.h> 30 #include <android/hardware/tests/trie/1.0/ITrie.h> 31 32 template <template <typename Type> class Service> runOnEachServer(void)33void runOnEachServer(void) { 34 using ::android::hardware::tests::bar::V1_0::IBar; 35 using ::android::hardware::tests::baz::V1_0::IBaz; 36 using ::android::hardware::tests::hash::V1_0::IHash; 37 using ::android::hardware::tests::inheritance::V1_0::IChild; 38 using ::android::hardware::tests::inheritance::V1_0::IFetcher; 39 using ::android::hardware::tests::inheritance::V1_0::IParent; 40 using ::android::hardware::tests::memory::V1_0::IMemoryTest; 41 using ::android::hardware::tests::multithread::V1_0::IMultithread; 42 using ::android::hardware::tests::safeunion::cpp::V1_0::ICppSafeUnion; 43 using ::android::hardware::tests::safeunion::V1_0::ISafeUnion; 44 using ::android::hardware::tests::trie::V1_0::ITrie; 45 46 Service<IMemoryTest>::run("memory"); 47 Service<IChild>::run("child"); 48 Service<IParent>::run("parent"); 49 Service<IFetcher>::run("fetcher"); 50 Service<IBaz>::run("baz"); 51 Service<IBar>::run("foo"); 52 Service<IHash>::run("default"); 53 Service<IMultithread>::run("multithread"); 54 Service<ITrie>::run("trie"); 55 Service<ICppSafeUnion>::run("default"); 56 Service<ISafeUnion>::run("safeunion"); 57 } 58 59 #endif // HIDL_TEST_H_ 60