summaryrefslogtreecommitdiff
path: root/contexthub/aidl/vts/VtsAidlHalContextHubTargetTest.cpp
diff options
context:
space:
mode:
authorArthur Ishiguro <arthuri@google.com>2022-02-01 17:03:32 +0000
committerArthur Ishiguro <arthuri@google.com>2022-02-01 17:32:04 +0000
commit5dba921320aa294538b4bed47e80ec4f17bb6ee9 (patch)
tree6df5a9defae353e528ec7ec222deafb0889c1712 /contexthub/aidl/vts/VtsAidlHalContextHubTargetTest.cpp
parentb12d418142cb5c1784da81fe58831e588adc0757 (diff)
Remove use of ILLEGAL_ARGUMENT in hostEndpointDisconnected
Since an invalid argument to hostEndpointDisconnected should be ignored by the HAL (and the Context Hub service), remove the EX_ILLEGAL_ARGUMENT requirement in the Context Hub AIDL HAL. Bug: 216798253 Test: Compile Change-Id: I83f08ccb998e6b494307de51f8709f3e0fbd2c99
Diffstat (limited to 'contexthub/aidl/vts/VtsAidlHalContextHubTargetTest.cpp')
-rw-r--r--contexthub/aidl/vts/VtsAidlHalContextHubTargetTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/contexthub/aidl/vts/VtsAidlHalContextHubTargetTest.cpp b/contexthub/aidl/vts/VtsAidlHalContextHubTargetTest.cpp
index f0583be581..3c01c6bac2 100644
--- a/contexthub/aidl/vts/VtsAidlHalContextHubTargetTest.cpp
+++ b/contexthub/aidl/vts/VtsAidlHalContextHubTargetTest.cpp
@@ -338,8 +338,7 @@ TEST_P(ContextHubAidl, TestHostConnection) {
TEST_P(ContextHubAidl, TestInvalidHostConnection) {
constexpr char16_t kHostEndpointId = 1;
- Status status = contextHub->onHostEndpointDisconnected(kHostEndpointId);
- ASSERT_EQ(status.exceptionCode(), android::binder::Status::EX_ILLEGAL_ARGUMENT);
+ ASSERT_TRUE(contextHub->onHostEndpointDisconnected(kHostEndpointId).isOk());
}
std::string PrintGeneratedTest(const testing::TestParamInfo<ContextHubAidl::ParamType>& info) {