diff options
author | Tomasz Wasilczyk <twasilczyk@google.com> | 2017-03-14 10:20:53 -0700 |
---|---|---|
committer | Tomasz Wasilczyk <twasilczyk@google.com> | 2017-03-14 10:20:53 -0700 |
commit | a8dec0f907cb42708e1b178d8bda4879fca157d4 (patch) | |
tree | 459a999c7f124af7d2c239911ff4bdc16aa945bf /broadcastradio/1.0 | |
parent | b39197c5d11f828db73e093ad37a50cfb648bc9e (diff) | |
download | android_hardware_interfaces-a8dec0f907cb42708e1b178d8bda4879fca157d4.tar.gz android_hardware_interfaces-a8dec0f907cb42708e1b178d8bda4879fca157d4.tar.bz2 android_hardware_interfaces-a8dec0f907cb42708e1b178d8bda4879fca157d4.zip |
Set skipSubChannel both to true and false when testing scan and step methods.
Bug: b/33382424, b/32022455
Test: VTS
Change-Id: If61fef78555c69a10e3b239ec8cc61bb199e399c
Diffstat (limited to 'broadcastradio/1.0')
-rw-r--r-- | broadcastradio/1.0/vts/functional/VtsHalBroadcastradioV1_0TargetTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/broadcastradio/1.0/vts/functional/VtsHalBroadcastradioV1_0TargetTest.cpp b/broadcastradio/1.0/vts/functional/VtsHalBroadcastradioV1_0TargetTest.cpp index 9d56164ad..4a3bee214 100644 --- a/broadcastradio/1.0/vts/functional/VtsHalBroadcastradioV1_0TargetTest.cpp +++ b/broadcastradio/1.0/vts/functional/VtsHalBroadcastradioV1_0TargetTest.cpp @@ -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)); |