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

Unified Diff: content/renderer/media/audio_renderer_sink_cache_unittest.cc

Issue 2021273002: Extending timeout for AudioRendererSinkCacheTest.SmokeTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding forgotten const Created 4 years, 7 months 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 | media/base/test_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_renderer_sink_cache_unittest.cc
diff --git a/content/renderer/media/audio_renderer_sink_cache_unittest.cc b/content/renderer/media/audio_renderer_sink_cache_unittest.cc
index 410f239b1458695212c5f8fa79c6998e81fd90ed..81e349c24fa126f183743e9ee06ca4dd4276819a 100644
--- a/content/renderer/media/audio_renderer_sink_cache_unittest.cc
+++ b/content/renderer/media/audio_renderer_sink_cache_unittest.cc
@@ -8,6 +8,7 @@
#include "base/bind_helpers.h"
#include "base/logging.h"
#include "base/test/test_simple_task_runner.h"
+#include "base/test/test_timeouts.h"
#include "content/renderer/media/audio_renderer_sink_cache_impl.h"
#include "media/audio/audio_device_description.h"
#include "media/base/audio_parameters.h"
@@ -362,7 +363,8 @@ TEST_F(AudioRendererSinkCacheTest, SmokeTest) {
}
// Wait for completion of all the tasks posted to at least one thread.
- media::WaitableMessageLoopEvent loop_event;
+ media::WaitableMessageLoopEvent loop_event(
+ TestTimeouts::action_max_timeout());
threads[kThreadCount - 1]->task_runner()->PostTaskAndReply(
FROM_HERE, base::Bind(&base::DoNothing), loop_event.GetClosure());
// Runs the loop and waits for the thread to call event's closure.
« no previous file with comments | « no previous file | media/base/test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698