You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.5 KiB
60 lines
2.5 KiB
/*
|
|
* Copyright (C) 2017 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef HIDL_TEST_H_
|
|
#define HIDL_TEST_H_
|
|
|
|
#include <android/hardware/tests/bar/1.0/IBar.h>
|
|
#include <android/hardware/tests/baz/1.0/IBaz.h>
|
|
#include <android/hardware/tests/hash/1.0/IHash.h>
|
|
#include <android/hardware/tests/inheritance/1.0/IChild.h>
|
|
#include <android/hardware/tests/inheritance/1.0/IFetcher.h>
|
|
#include <android/hardware/tests/inheritance/1.0/IParent.h>
|
|
#include <android/hardware/tests/memory/1.0/IMemoryTest.h>
|
|
#include <android/hardware/tests/multithread/1.0/IMultithread.h>
|
|
#include <android/hardware/tests/safeunion/1.0/ISafeUnion.h>
|
|
#include <android/hardware/tests/safeunion/cpp/1.0/ICppSafeUnion.h>
|
|
#include <android/hardware/tests/trie/1.0/ITrie.h>
|
|
|
|
template <template <typename Type> class Service>
|
|
void runOnEachServer(void) {
|
|
using ::android::hardware::tests::bar::V1_0::IBar;
|
|
using ::android::hardware::tests::baz::V1_0::IBaz;
|
|
using ::android::hardware::tests::hash::V1_0::IHash;
|
|
using ::android::hardware::tests::inheritance::V1_0::IChild;
|
|
using ::android::hardware::tests::inheritance::V1_0::IFetcher;
|
|
using ::android::hardware::tests::inheritance::V1_0::IParent;
|
|
using ::android::hardware::tests::memory::V1_0::IMemoryTest;
|
|
using ::android::hardware::tests::multithread::V1_0::IMultithread;
|
|
using ::android::hardware::tests::safeunion::cpp::V1_0::ICppSafeUnion;
|
|
using ::android::hardware::tests::safeunion::V1_0::ISafeUnion;
|
|
using ::android::hardware::tests::trie::V1_0::ITrie;
|
|
|
|
Service<IMemoryTest>::run("memory");
|
|
Service<IChild>::run("child");
|
|
Service<IParent>::run("parent");
|
|
Service<IFetcher>::run("fetcher");
|
|
Service<IBaz>::run("baz");
|
|
Service<IBar>::run("foo");
|
|
Service<IHash>::run("default");
|
|
Service<IMultithread>::run("multithread");
|
|
Service<ITrie>::run("trie");
|
|
Service<ICppSafeUnion>::run("default");
|
|
Service<ISafeUnion>::run("safeunion");
|
|
}
|
|
|
|
#endif // HIDL_TEST_H_
|