Set skipSubChannel both to true and false when testing scan and step methods.
Bug: b/33382424, b/32022455 Test: VTS Change-Id: If61fef78555c69a10e3b239ec8cc61bb199e399c
This commit is contained in:
parent
b39197c5d1
commit
a8dec0f907
1 changed files with 4 additions and 2 deletions
|
@ -455,6 +455,7 @@ TEST_F(BroadcastRadioHidlTest, SetConfigurationFails) {
|
|||
* - the HAL implements the method
|
||||
* - the method returns 0 (no error)
|
||||
* - the tuned callback is received within kTuneCallbacktimeoutNs ns
|
||||
* - skipping sub-channel or not does not fail the call
|
||||
*/
|
||||
TEST_F(BroadcastRadioHidlTest, Scan) {
|
||||
ASSERT_EQ(true, openTuner());
|
||||
|
@ -468,7 +469,7 @@ TEST_F(BroadcastRadioHidlTest, Scan) {
|
|||
|
||||
// test scan DOWN
|
||||
mCallbackCalled = false;
|
||||
hidlResult = mTuner->scan(Direction::DOWN, true);
|
||||
hidlResult = mTuner->scan(Direction::DOWN, false);
|
||||
EXPECT_TRUE(hidlResult.isOk());
|
||||
EXPECT_EQ(Result::OK, hidlResult);
|
||||
EXPECT_EQ(true, waitForCallback(kTuneCallbacktimeoutNs));
|
||||
|
@ -481,13 +482,14 @@ TEST_F(BroadcastRadioHidlTest, Scan) {
|
|||
* - the HAL implements the method
|
||||
* - the method returns 0 (no error)
|
||||
* - the tuned callback is received within kTuneCallbacktimeoutNs ns
|
||||
* - skipping sub-channel or not does not fail the call
|
||||
*/
|
||||
TEST_F(BroadcastRadioHidlTest, Step) {
|
||||
ASSERT_EQ(true, openTuner());
|
||||
ASSERT_TRUE(checkAntenna());
|
||||
// test step UP
|
||||
mCallbackCalled = false;
|
||||
Return<Result> hidlResult = mTuner->step(Direction::UP, true);
|
||||
Return<Result> hidlResult = mTuner->step(Direction::UP, false);
|
||||
EXPECT_TRUE(hidlResult.isOk());
|
||||
EXPECT_EQ(Result::OK, hidlResult);
|
||||
EXPECT_EQ(true, waitForCallback(kTuneCallbacktimeoutNs));
|
||||
|
|
Loading…
Reference in a new issue