diff --git a/tests/msgq/1.0/default/mq_test_service.cpp b/tests/msgq/1.0/default/mq_test_service.cpp index 66ad12f236..72ffe41b74 100644 --- a/tests/msgq/1.0/default/mq_test_service.cpp +++ b/tests/msgq/1.0/default/mq_test_service.cpp @@ -21,15 +21,13 @@ #include #include #include -#include using aidl::android::fmq::test::TestAidlMsgQ; #include -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() == android::OK); - } + // Register HIDL service + CHECK(defaultPassthroughServiceImplementation() == android::OK); ABinderProcess_joinThreadPool(); return EXIT_FAILURE; // should not reach