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

Unified Diff: cc/test/ordered_simple_task_runner.cc

Issue 1124273004: Add SurfaceDisplayOutputSurface unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@displayScheduler16
Patch Set: Remove debug code and fix flakiness due to uninitialized variable Created 5 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 | « cc/surfaces/surface_display_output_surface_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/ordered_simple_task_runner.cc
diff --git a/cc/test/ordered_simple_task_runner.cc b/cc/test/ordered_simple_task_runner.cc
index 9fc22aded6d73a1d0bee912fe0fcf275bb3910b4..4bf97837371973ccbb2821c922e4ea4add8cf18d 100644
--- a/cc/test/ordered_simple_task_runner.cc
+++ b/cc/test/ordered_simple_task_runner.cc
@@ -78,6 +78,7 @@ void TestOrderablePendingTask::AsValueInto(
OrderedSimpleTaskRunner::OrderedSimpleTaskRunner()
: advance_now_(true),
now_src_(TestNowSource::Create(0)),
+ max_tasks_(kAbsoluteMaxTasks),
inside_run_tasks_until_(false) {
}
@@ -286,6 +287,10 @@ void OrderedSimpleTaskRunner::AsValueInto(
state->BeginDictionary("now_src");
now_src_->AsValueInto(state);
state->EndDictionary();
+
+ state->SetBoolean("advance_now", advance_now_);
+ state->SetBoolean("inside_run_tasks_until", inside_run_tasks_until_);
+ state->SetString("max_tasks", base::SizeTToString(max_tasks_));
}
base::Callback<bool(void)> OrderedSimpleTaskRunner::TaskRunCountBelow(
« no previous file with comments | « cc/surfaces/surface_display_output_surface_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698