From 0c0ac6a1616778e3852e3f8b3248688ca9d899b2 Mon Sep 17 00:00:00 2001 From: mithro Date: Tue, 9 Sep 2014 18:03:36 -0700 Subject: New features include; * Actually running the tasks in the ordered you asked! * Allow running only pending tasks, all tasks until idle, to a given time or for a given period. * Allow stopping of running tasks on *any* arbitrary condition. No longer will your tasks stop working when someone adds a new task or changes the task order! * Task runner intimately connected to time and controls Now(). Supports both automatic management and manual control. This change makes it possible for the scheduler_unit tests to be 100% deterministic. It also allows them to be more flexible and less brittle. BUG=380889 Review URL: https://codereview.chromium.org/387493002 Cr-Commit-Position: refs/heads/master@{#294059} --- cc/test/begin_frame_args_test.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cc/test/begin_frame_args_test.h') diff --git a/cc/test/begin_frame_args_test.h b/cc/test/begin_frame_args_test.h index 0ab1daf..1c75c37 100644 --- a/cc/test/begin_frame_args_test.h +++ b/cc/test/begin_frame_args_test.h @@ -9,6 +9,7 @@ #include "base/time/time.h" #include "cc/output/begin_frame_args.h" +#include "cc/test/test_now_source.h" #include "testing/gtest/include/gtest/gtest.h" namespace cc { @@ -21,6 +22,13 @@ BeginFrameArgs CreateBeginFrameArgsForTesting(int64 frame_time, int64 interval); BeginFrameArgs CreateExpiredBeginFrameArgsForTesting(); +// Creates a BeginFrameArgs using the fake Now value stored on the +// OrderSimpleTaskRunner. +BeginFrameArgs CreateBeginFrameArgsForTesting( + scoped_refptr now_src); +BeginFrameArgs CreateExpiredBeginFrameArgsForTesting( + scoped_refptr now_src); + // gtest helpers -- these *must* be in the same namespace as the types they // operate on. -- cgit v1.1