Merge "Update inheritance test implementation."

am: 31fba8cd40

Change-Id: I57935d1a08f1976d2301eee692ed823fb81bfcf4
This commit is contained in:
Steven Moreland
2017-10-03 22:15:02 +00:00
committed by android-build-merger

View File

@@ -1,8 +1,10 @@
#define LOG_TAG "hidl_test"
#include "Parent.h"
#include <log/log.h>
#include "Parent.h"
#include "Child.h"
namespace android {
namespace hardware {
@@ -23,8 +25,11 @@ Return<void> Parent::doParent() {
return Void();
}
IParent* HIDL_FETCH_IParent(const char* name) {
if (name == std::string("child")) {
return new Child();
}
IParent* HIDL_FETCH_IParent(const char* /* name */) {
return new Parent();
}