Merge "Update inheritance test implementation."
diff --git a/tests/inheritance/1.0/default/Parent.cpp b/tests/inheritance/1.0/default/Parent.cpp
index d3f1932..1fabf1b 100644
--- a/tests/inheritance/1.0/default/Parent.cpp
+++ b/tests/inheritance/1.0/default/Parent.cpp
@@ -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();
}
+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();
}