diff options
author | Steven Moreland <smoreland@google.com> | 2017-01-03 17:06:57 -0800 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-01-04 10:40:05 -0800 |
commit | b6438421923590b765905efe151e26129dce4094 (patch) | |
tree | f80ccca80838fb5e40d900165fc73d7d6c314a7f /gatekeeper/1.0 | |
parent | 5bf8664c7e0c6bf746d724ee1f07d98fa14f0cf2 (diff) | |
download | platform_hardware_interfaces-b6438421923590b765905efe151e26129dce4094.tar.gz platform_hardware_interfaces-b6438421923590b765905efe151e26129dce4094.tar.bz2 platform_hardware_interfaces-b6438421923590b765905efe151e26129dce4094.zip |
Return<*> getStatus().isOk() -> isOk()
Bug: 31348667
Test: compiles
Change-Id: If8d5a23f80dbc04127635b49f1ef77398fc9f8a1
Diffstat (limited to 'gatekeeper/1.0')
-rw-r--r-- | gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp b/gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp index e919b48ed1..09690f8355 100644 --- a/gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp +++ b/gatekeeper/1.0/vts/functional/gatekeeper_hidl_hal_test.cpp @@ -85,7 +85,7 @@ class GatekeeperHidlTest : public ::testing::Test { auto ret = gatekeeper_->enroll( uid_, req.curPwdHandle, req.curPwd, req.newPwd, [&rsp](const GatekeeperResponse &cbRsp) { rsp = cbRsp; }); - ASSERT_TRUE(ret.getStatus().isOk()); + ASSERT_TRUE(ret.isOk()); if (rsp.code != GatekeeperStatusCode::ERROR_RETRY_TIMEOUT) break; ALOGI("%s: got retry code; retrying in 1 sec", __func__); sleep(1); @@ -97,7 +97,7 @@ class GatekeeperHidlTest : public ::testing::Test { auto ret = gatekeeper_->verify( uid_, req.challenge, req.curPwdHandle, req.newPwd, [&rsp](const GatekeeperResponse &cb_rsp) { rsp = cb_rsp; }); - ASSERT_TRUE(ret.getStatus().isOk()); + ASSERT_TRUE(ret.isOk()); if (rsp.code != GatekeeperStatusCode::ERROR_RETRY_TIMEOUT) break; ALOGI("%s: got retry code; retrying in 1 sec", __func__); sleep(1); @@ -108,7 +108,7 @@ class GatekeeperHidlTest : public ::testing::Test { while (true) { auto ret = gatekeeper_->deleteUser( uid_, [&rsp](const GatekeeperResponse &cb_rsp) { rsp = cb_rsp; }); - ASSERT_TRUE(ret.getStatus().isOk()); + ASSERT_TRUE(ret.isOk()); if (rsp.code != GatekeeperStatusCode::ERROR_RETRY_TIMEOUT) break; ALOGI("%s: got retry code; retrying in 1 sec", __func__); sleep(1); @@ -119,7 +119,7 @@ class GatekeeperHidlTest : public ::testing::Test { while (true) { auto ret = gatekeeper_->deleteAllUsers( [&rsp](const GatekeeperResponse &cb_rsp) { rsp = cb_rsp; }); - ASSERT_TRUE(ret.getStatus().isOk()); + ASSERT_TRUE(ret.isOk()); if (rsp.code != GatekeeperStatusCode::ERROR_RETRY_TIMEOUT) break; ALOGI("%s: got retry code; retrying in 1 sec", __func__); sleep(1); |