summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9960148)
raw | patch | inline | side by side (parent: 9960148)
author | Steven Moreland <smoreland@google.com> | |
Mon, 2 Oct 2017 21:47:35 +0000 (14:47 -0700) | ||
committer | Steven Moreland <smoreland@google.com> | |
Tue, 3 Oct 2017 19:52:51 +0000 (12:52 -0700) |
HIDL_FETCH_IParent returns a child object
when the "child" instance name is requested.
Bug: 67104214
Test: hidl's run_all_device_tests.sh
Change-Id: Ie4b85d657e5d066fb77832e188062af29bc2e7c6
when the "child" instance name is requested.
Bug: 67104214
Test: hidl's run_all_device_tests.sh
Change-Id: Ie4b85d657e5d066fb77832e188062af29bc2e7c6
tests/inheritance/1.0/default/Parent.cpp | patch | blob | history |
index d3f1932530170f7cbe9e1b1aa24e155510b62aad..1fabf1bff23b23ffdab867d26c235de218b10807 100644 (file)
#define LOG_TAG "hidl_test"
+#include "Parent.h"
+
#include <log/log.h>
-#include "Parent.h"
+#include "Child.h"
namespace android {
namespace hardware {
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();
}