Skip to content

Commit

Permalink
[Chromecast] Fix CastAudioOutputStream::CloseWithoutStop test.
Browse files Browse the repository at this point in the history
Close is not a synchronous call; allow the thread to finish before exiting.

Bug: b/135104876
Change-Id: I32c5f36264757100678d258e8508ec45f3341d49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1656674
Commit-Queue: Alex Leung <alexleung@google.com>
Reviewed-by: Kenneth MacKay <kmackay@chromium.org>
Cr-Commit-Position: refs/heads/master@{#668648}
  • Loading branch information
Alex Leung authored and Commit Bot committed Jun 13, 2019
1 parent 930bf29 commit f899997
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ TEST_F(CastAudioOutputStreamTest, CloseWithoutStop) {
RunThreadsUntilIdle();

stream->Close();
RunThreadsUntilIdle();
}

TEST_F(CastAudioOutputStreamTest, CloseCancelsOpen) {
Expand Down

0 comments on commit f899997

Please sign in to comment.