Steven Moreland | 7b680eb | 2017-04-19 16:34:26 -0700 | [diff] [blame] | 1 | #ifndef HIDL_TEST_H_ |
| 2 | #define HIDL_TEST_H_ |
| 3 | |
Chih-Hung Hsieh | 306cc4b | 2017-08-02 14:59:25 -0700 | [diff] [blame] | 4 | #include <android/hardware/tests/bar/1.0/IBar.h> |
| 5 | #include <android/hardware/tests/hash/1.0/IHash.h> |
| 6 | #include <android/hardware/tests/inheritance/1.0/IChild.h> |
| 7 | #include <android/hardware/tests/inheritance/1.0/IFetcher.h> |
| 8 | #include <android/hardware/tests/inheritance/1.0/IParent.h> |
| 9 | #include <android/hardware/tests/memory/1.0/IMemoryTest.h> |
| 10 | #include <android/hardware/tests/multithread/1.0/IMultithread.h> |
| 11 | #include <android/hardware/tests/pointer/1.0/IGraph.h> |
| 12 | #include <android/hardware/tests/pointer/1.0/IPointer.h> |
Steven Moreland | 7b680eb | 2017-04-19 16:34:26 -0700 | [diff] [blame] | 13 | |
Chih-Hung Hsieh | 306cc4b | 2017-08-02 14:59:25 -0700 | [diff] [blame] | 14 | template <template <typename Type> class Service> |
| 15 | void runOnEachServer(void) { |
| 16 | using ::android::hardware::tests::bar::V1_0::IBar; |
| 17 | using ::android::hardware::tests::hash::V1_0::IHash; |
| 18 | using ::android::hardware::tests::inheritance::V1_0::IChild; |
| 19 | using ::android::hardware::tests::inheritance::V1_0::IFetcher; |
| 20 | using ::android::hardware::tests::inheritance::V1_0::IParent; |
| 21 | using ::android::hardware::tests::memory::V1_0::IMemoryTest; |
| 22 | using ::android::hardware::tests::multithread::V1_0::IMultithread; |
| 23 | using ::android::hardware::tests::pointer::V1_0::IGraph; |
| 24 | using ::android::hardware::tests::pointer::V1_0::IPointer; |
| 25 | |
| 26 | Service<IMemoryTest>::run("memory"); |
| 27 | Service<IChild>::run("child"); |
| 28 | Service<IParent>::run("parent"); |
| 29 | Service<IFetcher>::run("fetcher"); |
| 30 | Service<IBar>::run("foo"); |
| 31 | Service<IHash>::run("default"); |
| 32 | Service<IGraph>::run("graph"); |
| 33 | Service<IPointer>::run("pointer"); |
| 34 | Service<IMultithread>::run("multithread"); |
| 35 | } |
| 36 | |
| 37 | #endif // HIDL_TEST_H_ |