Close stream at end of OpenAnOpenedStreamsTest

The following test CloseStreamBeforeOpenTest assumes that there are no
open streams.

Bug: 174686912
Test: atest VtsHalTvInputV1_0TargetTest
      against mock binderized TV input HAL
Change-Id: I589fdee5e5181f2aa32977cb2594ec61410fb7b1
This commit is contained in:
Dean Wheatley
2020-11-30 22:02:14 +11:00
parent 3fe3ba022e
commit ce4f755f54

View File

@@ -313,6 +313,9 @@ TEST_P(TvInputHidlTest, OpenAnOpenedStreamsTest) {
tv_input_->openStream(device_id, stream_id,
[&result](Result res, const native_handle_t*) { result = res; });
EXPECT_EQ(Result::INVALID_STATE, result);
// close stream as subsequent tests assume no open streams
EXPECT_EQ(Result::OK, tv_input_->closeStream(device_id, stream_id));
}
/*