mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Ignore NanSessionStateChange test for old HAL" into udc-dev am: 25d4025065 am: cddd4dd6e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23718309 Change-Id: I1b961aacfbbcc8cad81e61985c24fd5e8bddb7b0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -385,9 +385,15 @@ TEST_P(ContextHubAidl, TestInvalidHostConnection) {
|
||||
TEST_P(ContextHubAidl, TestNanSessionStateChange) {
|
||||
NanSessionStateUpdate update;
|
||||
update.state = true;
|
||||
ASSERT_TRUE(contextHub->onNanSessionStateChanged(update).isOk());
|
||||
update.state = false;
|
||||
ASSERT_TRUE(contextHub->onNanSessionStateChanged(update).isOk());
|
||||
Status status = contextHub->onNanSessionStateChanged(update);
|
||||
if (status.exceptionCode() == Status::EX_UNSUPPORTED_OPERATION ||
|
||||
status.transactionError() == android::UNKNOWN_TRANSACTION) {
|
||||
GTEST_SKIP() << "Not supported -> old API; or not implemented";
|
||||
} else {
|
||||
ASSERT_TRUE(status.isOk());
|
||||
update.state = false;
|
||||
ASSERT_TRUE(contextHub->onNanSessionStateChanged(update).isOk());
|
||||
}
|
||||
}
|
||||
|
||||
std::string PrintGeneratedTest(const testing::TestParamInfo<ContextHubAidl::ParamType>& info) {
|
||||
|
||||
Reference in New Issue
Block a user