Files
hardware_interfaces/tests/inheritance/1.0/default/Grandparent.cpp
Yifan Hong cc6ad7dfe5 add test for binder inheritance.
Test: hidl_test
Test: `make hidl_test_java` compiles
Change-Id: Ie9217b79e369f2a1e7a7c9ed02524b17e3fc8b7f
2016-10-26 15:27:23 -07:00

30 lines
669 B
C++

#define LOG_TAG "hidl_test"
#include <android-base/logging.h>
#include "Grandparent.h"
namespace android {
namespace hardware {
namespace tests {
namespace inheritance {
namespace V1_0 {
namespace implementation {
// Methods from ::android::hardware::tests::inheritance::V1_0::IGrandparent follow.
Return<void> Grandparent::doGrandparent() {
ALOGI("SERVER(Bar) Grandparent::doGrandparent");
return Void();
}
IGrandparent* HIDL_FETCH_IGrandparent(const char* /* name */) {
return new Grandparent();
}
} // namespace implementation
} // namespace V1_0
} // namespace inheritance
} // namespace tests
} // namespace hardware
} // namespace android