Home | History | Annotate | Download | only in hidl_test
      1 #ifndef HIDL_TEST_H_
      2 #define HIDL_TEST_H_
      3 
      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>
     13 #include <android/hardware/tests/trie/1.0/ITrie.h>
     14 
     15 template <template <typename Type> class Service>
     16 void runOnEachServer(void) {
     17     using ::android::hardware::tests::bar::V1_0::IBar;
     18     using ::android::hardware::tests::hash::V1_0::IHash;
     19     using ::android::hardware::tests::inheritance::V1_0::IChild;
     20     using ::android::hardware::tests::inheritance::V1_0::IFetcher;
     21     using ::android::hardware::tests::inheritance::V1_0::IParent;
     22     using ::android::hardware::tests::memory::V1_0::IMemoryTest;
     23     using ::android::hardware::tests::multithread::V1_0::IMultithread;
     24     using ::android::hardware::tests::pointer::V1_0::IGraph;
     25     using ::android::hardware::tests::pointer::V1_0::IPointer;
     26     using ::android::hardware::tests::trie::V1_0::ITrie;
     27 
     28     Service<IMemoryTest>::run("memory");
     29     Service<IChild>::run("child");
     30     Service<IParent>::run("parent");
     31     Service<IFetcher>::run("fetcher");
     32     Service<IBar>::run("foo");
     33     Service<IHash>::run("default");
     34     Service<IGraph>::run("graph");
     35     Service<IPointer>::run("pointer");
     36     Service<IMultithread>::run("multithread");
     37     Service<ITrie>::run("trie");
     38 }
     39 
     40 #endif  // HIDL_TEST_H_
     41