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

Commit 17d82331 authored by Chen Cheng's avatar Chen Cheng
Browse files

Revert "Change StatusCode to ErrorCode."

Revert submission 18878765-b/224876310

Reason for revert: <seahawk build fails. Needs to update related files in seahawk>
Reverted Changes:
I3ec73d068:Change StatusCode to ErrorCode.
I98c2cbe07:Created ErrorCode in vhal cpp client.

Change-Id: I809ec4718c4d730212d2d7cdf3fd6dd12eee835e
parent 4558013c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -48,7 +48,6 @@ using ::aidl::android::hardware::automotive::vehicle::VehiclePropertyType;
using ::android::getAidlHalInstanceNames;
using ::android::base::ScopedLockAssertion;
using ::android::base::StringPrintf;
using ::android::frameworks::automotive::vhal::ErrorCode;
using ::android::frameworks::automotive::vhal::HalPropError;
using ::android::frameworks::automotive::vhal::IHalPropConfig;
using ::android::frameworks::automotive::vhal::IHalPropValue;
@@ -288,7 +287,7 @@ TEST_P(VtsHalAutomotiveVehicleTargetTest, setNotWritableProp) {
    auto setValueResult = mVhalClient->setValueSync(*getValueResult.value());

    ASSERT_FALSE(setValueResult.ok()) << "Expect set a read-only value to fail";
    ASSERT_EQ(setValueResult.error().code(), ErrorCode::ACCESS_DENIED_FROM_VHAL);
    ASSERT_EQ(setValueResult.error().code(), StatusCode::ACCESS_DENIED);
}

// Test subscribe() and unsubscribe().