mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Update inheritance test implementation."
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