From 69cfb0aa385fd8a1b65f233e3d144f0941e2df73 Mon Sep 17 00:00:00 2001 From: sqian Date: Fri, 21 Jul 2017 11:49:03 -0700 Subject: [PATCH] Add Sim absent assertion in the 1.0 setup Currently the VTS tests for radio are for Sim Absent only. Adding this assertion in the set up before running VTS tests clarifies the current tests running is for sim absent only. Test: run vts Bug: 63898623 Change-Id: Ie09fb8bcedfd0b35b14f0a70952f44b6f6b082aa --- radio/1.0/vts/functional/radio_hidl_hal_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radio/1.0/vts/functional/radio_hidl_hal_test.cpp b/radio/1.0/vts/functional/radio_hidl_hal_test.cpp index b957c6e5b3..158cd6e56c 100644 --- a/radio/1.0/vts/functional/radio_hidl_hal_test.cpp +++ b/radio/1.0/vts/functional/radio_hidl_hal_test.cpp @@ -35,6 +35,10 @@ void RadioHidlTest::SetUp() { EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type); EXPECT_EQ(serial, radioRsp->rspInfo.serial); EXPECT_EQ(RadioError::NONE, radioRsp->rspInfo.error); + + /* Vts Testing with Sim Absent only. This needs to be removed later in P when sim present + * scenarios will be tested. */ + EXPECT_EQ(CardState::ABSENT, cardStatus.cardState); } void RadioHidlTest::TearDown() {}