blob: 979b47feae4a53f38a9da131eca1b5830cd1d916 [file] [log] [blame]
Steven Moreland33e87b82016-11-22 15:34:39 -08001#ifndef ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_FETCHER_H
2#define ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_FETCHER_H
Yifan Hongcc6ad7d2016-10-18 18:44:17 -07003
4#include "Child.h"
5#include <android/hardware/tests/inheritance/1.0/IFetcher.h>
6#include <hidl/Status.h>
7
8#include <hidl/MQDescriptor.h>
9namespace android {
10namespace hardware {
11namespace tests {
12namespace inheritance {
13namespace V1_0 {
14namespace implementation {
15
16using ::android::hardware::tests::inheritance::V1_0::IFetcher;
17using ::android::hardware::Return;
18using ::android::hardware::Void;
19using ::android::hardware::hidl_vec;
20using ::android::hardware::hidl_string;
21using ::android::sp;
22
23struct Fetcher : public IFetcher {
24
25 Fetcher();
26
27 // Methods from ::android::hardware::tests::inheritance::V1_0::IFetcher follow.
Martijn Coenene8b01612017-01-02 15:19:53 +010028 Return<sp<IGrandparent>> getGrandparent(bool sendRemote) override;
29 Return<sp<IParent>> getParent(bool sendRemote) override;
30 Return<sp<IChild>> getChild(bool sendRemote) override;
Yifan Hongcc6ad7d2016-10-18 18:44:17 -070031
32private:
33 sp<IChild> mPrecious;
34};
35
36extern "C" IFetcher* HIDL_FETCH_IFetcher(const char* name);
37
38} // namespace implementation
39} // namespace V1_0
40} // namespace inheritance
41} // namespace tests
42} // namespace hardware
43} // namespace android
44
Steven Moreland33e87b82016-11-22 15:34:39 -080045#endif // ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_FETCHER_H