mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Make sideband stream handle validation configurable" into main
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#define LOG_TAG "tv_input_aidl_hal_test"
|
||||
|
||||
#include "VtsHalTvInputTargetTest.h"
|
||||
|
||||
#include <android-base/properties.h>
|
||||
@@ -181,7 +183,9 @@ TEST_P(TvInputAidlTest, OpenAndCloseStreamTest) {
|
||||
ALOGD("OpenAndCloseStreamTest: open stream, device_id=%d, stream_id=%d", device_id,
|
||||
stream_id);
|
||||
ASSERT_TRUE(tv_input_->openStream(device_id, stream_id, &handle).isOk());
|
||||
ASSERT_TRUE(isValidHandle(handle));
|
||||
if (VERIFY_SIDEBAND_STREAM_HANDLE) {
|
||||
ASSERT_TRUE(isValidHandle(handle));
|
||||
}
|
||||
|
||||
ALOGD("OpenAndCloseStreamTest: close stream, device_id=%d, stream_id=%d", device_id,
|
||||
stream_id);
|
||||
@@ -283,7 +287,9 @@ TEST_P(TvInputAidlTest, OpenAnOpenedStreamsTest) {
|
||||
|
||||
ALOGD("OpenAnOpenedStreamsTest: open stream, device_id=%d, stream_id=%d", device_id, stream_id);
|
||||
ASSERT_TRUE(tv_input_->openStream(device_id, stream_id, &handle).isOk());
|
||||
ASSERT_TRUE(isValidHandle(handle));
|
||||
if (VERIFY_SIDEBAND_STREAM_HANDLE) {
|
||||
ASSERT_TRUE(isValidHandle(handle));
|
||||
}
|
||||
|
||||
ALOGD("OpenAnOpenedStreamsTest: open stream, device_id=%d, stream_id=%d", device_id, stream_id);
|
||||
ASSERT_TRUE(tv_input_->openStream(device_id, stream_id, &handle).getServiceSpecificError() ==
|
||||
|
||||
@@ -43,6 +43,7 @@ using ::android::AidlMessageQueue;
|
||||
|
||||
#define WAIT_FOR_EVENT_TIMEOUT 5
|
||||
#define DEFAULT_ID INT32_MIN
|
||||
#define VERIFY_SIDEBAND_STREAM_HANDLE 1
|
||||
|
||||
namespace VtsHalTvInputTargetTest {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user