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

Unified Diff: media/cast/test/fake_single_thread_task_runner.cc

Issue 308713005: Cast: Synthetic benchmark tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge + minor fix Created 6 years, 6 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 | « media/cast/test/cast_benchmarks.cc ('k') | media/cast/test/utility/test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/fake_single_thread_task_runner.cc
diff --git a/media/cast/test/fake_single_thread_task_runner.cc b/media/cast/test/fake_single_thread_task_runner.cc
index b60a1b12eafdfdf7b12952b567ec9b4ed2232a76..a2e3393f557f56b984023a75f2444a8cde9aa05b 100644
--- a/media/cast/test/fake_single_thread_task_runner.cc
+++ b/media/cast/test/fake_single_thread_task_runner.cc
@@ -26,6 +26,7 @@ bool FakeSingleThreadTaskRunner::PostDelayedTask(
if (fail_on_next_task_) {
LOG(FATAL) << "Infinite task-add loop detected.";
}
+ CHECK(delay >= base::TimeDelta());
EXPECT_GE(delay, base::TimeDelta());
PostedTask posed_task(from_here,
task,
« no previous file with comments | « media/cast/test/cast_benchmarks.cc ('k') | media/cast/test/utility/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698