summaryrefslogtreecommitdiffstats
path: root/cc/test/begin_frame_args_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test/begin_frame_args_test.h')
-rw-r--r--cc/test/begin_frame_args_test.h8
1 files changed, 8 insertions, 0 deletions
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<TestNowSource> now_src);
+BeginFrameArgs CreateExpiredBeginFrameArgsForTesting(
+ scoped_refptr<TestNowSource> now_src);
+
// gtest helpers -- these *must* be in the same namespace as the types they
// operate on.