Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31fba8cd authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Update inheritance test implementation."

parents cb47aaf4 9d320e3f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
#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();
}