mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Update inheritance test implementation." am: 31fba8cd40
am: 7a5c1b6fda
Change-Id: I213780758114fa5fd8891e8d1b501ae7d9e68929
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user