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

Commit 7a5c1b6f authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "Update inheritance test implementation."

am: 31fba8cd

Change-Id: I57935d1a08f1976d2301eee692ed823fb81bfcf4
parents 6e975b18 31fba8cd
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();
}