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

Commit ea36e3c1 authored by Satish Yalla's avatar Satish Yalla Committed by Android (Google) Code Review
Browse files

Merge "Revert "Fix fmq_test when HIDL is not supported"" into main

parents db12f6a9 8aa5d8a5
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -21,15 +21,13 @@
#include <android/binder_manager.h>
#include <android/binder_process.h>
#include <android/hardware/tests/msgq/1.0/ITestMsgQ.h>
#include <hidl/ServiceManagement.h>

using aidl::android::fmq::test::TestAidlMsgQ;

#include <hidl/LegacySupport.h>

using android::hardware::defaultPassthroughServiceImplementation;
using android::hardware::isHidlSupported;
using android::hardware::tests::msgq::V1_0::ITestMsgQ;
using android::hardware::defaultPassthroughServiceImplementation;

int main() {
    android::hardware::details::setTrebleTestingOverride(true);
@@ -41,10 +39,8 @@ int main() {
    LOG(INFO) << "instance: " << instance;
    CHECK(AServiceManager_addService(store->asBinder().get(), instance.c_str()) == STATUS_OK);

    if (isHidlSupported()) {
    // Register HIDL service
    CHECK(defaultPassthroughServiceImplementation<ITestMsgQ>() == android::OK);
    }
    ABinderProcess_joinThreadPool();

    return EXIT_FAILURE;  // should not reach