From fbcbc01d9c47bb254ddda961deee771e4f6a9f1f Mon Sep 17 00:00:00 2001 From: Ruchi Kandoi Date: Fri, 9 Feb 2018 13:00:02 -0800 Subject: [PATCH] Add init() as a part of Secure Element VTS test Test: run vts -m VtsHalSecureElementV1_0Target Bug: 64881253 Change-Id: Ic93efdd3633f0dd3a5625e617dac0243d934ca77 --- .../1.0/vts/functional/VtsHalSecureElementV1_0TargetTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/secure_element/1.0/vts/functional/VtsHalSecureElementV1_0TargetTest.cpp b/secure_element/1.0/vts/functional/VtsHalSecureElementV1_0TargetTest.cpp index 2045e445d4..59c354f103 100644 --- a/secure_element/1.0/vts/functional/VtsHalSecureElementV1_0TargetTest.cpp +++ b/secure_element/1.0/vts/functional/VtsHalSecureElementV1_0TargetTest.cpp @@ -92,6 +92,10 @@ class SecureElementHidlTest : public ::testing::VtsHalHidlTargetTestBase { se_cb_ = new SecureElementHalCallback(); ASSERT_NE(se_cb_, nullptr); + se_->init(se_cb_); + auto res = se_cb_->WaitForCallback(kCallbackNameOnStateChange); + EXPECT_TRUE(res.no_timeout); + EXPECT_TRUE(res.args->state_); } sp se_;