Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce4f755f authored by Dean Wheatley's avatar Dean Wheatley
Browse files

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
parent 3fe3ba02
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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));
}

/*