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 /soundtrigger | |
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 'soundtrigger')
-rw-r--r-- | soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp b/soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp index e5bf086bd0..3379d93156 100644 --- a/soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp +++ b/soundtrigger/2.0/vts/functional/soundtrigger_hidl_hal_test.cpp @@ -104,7 +104,7 @@ TEST_F(SoundTriggerHidlTest, GetProperties) { halProperties = res; }); - EXPECT_EQ(Status::EX_NONE, hidlReturn.getStatus().exceptionCode()); + EXPECT_TRUE(hidlReturn.isOk()); EXPECT_EQ(0, ret); EXPECT_GT(halProperties.maxSoundModels, 0u); EXPECT_GT(halProperties.maxKeyPhrases, 0u); @@ -136,7 +136,7 @@ TEST_F(SoundTriggerHidlTest, LoadInvalidModelFail) { handle = res; }); - EXPECT_EQ(Status::EX_NONE, hidlReturn.getStatus().exceptionCode()); + EXPECT_TRUE(hidlReturn.isOk()); EXPECT_NE(0, ret); } @@ -154,7 +154,7 @@ TEST_F(SoundTriggerHidlTest, UnloadModelNoModelFail) { hidlReturn = mSoundTriggerHal->unloadSoundModel(halHandle); - EXPECT_EQ(Status::EX_NONE, hidlReturn.getStatus().exceptionCode()); + EXPECT_TRUE(hidlReturn.isOk()); EXPECT_NE(0, hidlReturn); } @@ -184,7 +184,7 @@ TEST_F(SoundTriggerHidlTest, StartRecognitionNoModelFail) { hidlReturn = mSoundTriggerHal->startRecognition(handle, config, mCallback, 0); - EXPECT_EQ(Status::EX_NONE, hidlReturn.getStatus().exceptionCode()); + EXPECT_TRUE(hidlReturn.isOk()); EXPECT_NE(0, hidlReturn); } @@ -202,7 +202,7 @@ TEST_F(SoundTriggerHidlTest, StopRecognitionNoAStartFail) { hidlReturn = mSoundTriggerHal->stopRecognition(handle); - EXPECT_EQ(Status::EX_NONE, hidlReturn.getStatus().exceptionCode()); + EXPECT_TRUE(hidlReturn.isOk()); EXPECT_NE(0, hidlReturn); } @@ -219,7 +219,7 @@ TEST_F(SoundTriggerHidlTest, stopAllRecognitions) { hidlReturn = mSoundTriggerHal->stopAllRecognitions(); - EXPECT_EQ(Status::EX_NONE, hidlReturn.getStatus().exceptionCode()); + EXPECT_TRUE(hidlReturn.isOk()); EXPECT_TRUE(hidlReturn == 0 || hidlReturn == -ENOSYS); } |