Update VtsHalSecureElementV1_2TargetTest

When calling se reset, connected state should be reported with false and then true.

Bug: 154572079
Test: run vts -m VtsHalSecureElementV1_2TargetTest
Merged-In: I907d32a2c44230b581680d1872c9b01e517a5d81
Change-Id: I907d32a2c44230b581680d1872c9b01e517a5d81
This commit is contained in:
Jack Yu 2020-04-21 18:03:43 +08:00
parent 3e4d8d0856
commit 53a741a8f2

View file

@ -85,6 +85,7 @@ class SecureElementHidlTest : public ::testing::TestWithParam<std::string> {
* Reset: * Reset:
* Calls reset() * Calls reset()
* Checks status * Checks status
* Check onStateChange is received with connected state set to false
* Check onStateChange is received with connected state set to true * Check onStateChange is received with connected state set to true
*/ */
TEST_P(SecureElementHidlTest, Reset) { TEST_P(SecureElementHidlTest, Reset) {
@ -92,6 +93,10 @@ TEST_P(SecureElementHidlTest, Reset) {
auto res = se_cb_->WaitForCallback(kCallbackNameOnStateChange); auto res = se_cb_->WaitForCallback(kCallbackNameOnStateChange);
EXPECT_TRUE(res.no_timeout); EXPECT_TRUE(res.no_timeout);
EXPECT_FALSE(res.args->state_);
res = se_cb_->WaitForCallback(kCallbackNameOnStateChange);
EXPECT_TRUE(res.no_timeout);
EXPECT_TRUE(res.args->state_); EXPECT_TRUE(res.args->state_);
} }