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

Commit 6a6a71cf authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "Update inheritance test implementation." am: 31fba8cd am: 7a5c1b6f am: e427bde5

am: 30303505

Change-Id: I46e8c5de6f37fda698e00365c01e43b052885829
parents 66d58d36 30303505
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();
}