Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(737)

Unified Diff: media/gpu/video_encode_accelerator_unittest.cc

Issue 2561063002: VEA unittest: fix cache line-alignment test hang issue (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/video_encode_accelerator_unittest.cc
diff --git a/media/gpu/video_encode_accelerator_unittest.cc b/media/gpu/video_encode_accelerator_unittest.cc
index 9d9f5a4844ace3091fb5e3bb68c76bef3349f680..edb7e00788adc66428a541d03b80aee6872971ba 100644
--- a/media/gpu/video_encode_accelerator_unittest.cc
+++ b/media/gpu/video_encode_accelerator_unittest.cc
@@ -2113,7 +2113,11 @@ void SimpleTestFunc() {
CS_FINISHED};
for (const auto& state : state_transitions) {
- EXPECT_EQ(state, note->Wait());
+ ClientState wait_state = note->Wait();
+ EXPECT_EQ(state, wait_state);
+ if (state != wait_state) {
+ break;
+ }
}
encoder_thread.task_runner()->PostTask(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698