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

Unified Diff: cc/test/begin_frame_args_test.h

Issue 387493002: Fixing and enhancing OrderedSimpleTaskRunner to allow 100% deterministic tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using SizeTToString rather then c++11 to_string. Created 6 years, 4 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
Index: 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 e0fe9c069c426a5eaa1f0b8134abc510cb4b5440..ad865574d873458fb3cc9191837b0fbc3dcb1064 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/ordered_simple_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
@@ -20,6 +21,13 @@ BeginFrameArgs CreateBeginFrameArgsForTesting(int64 frame_time,
int64 interval);
BeginFrameArgs CreateExpiredBeginFrameArgsForTesting();
+// Creates a BeginFrameArgs using the fake Now value stored on the
+// OrderSimpleTaskRunner.
+BeginFrameArgs CreateBeginFrameArgsForTesting(
+ const OrderedSimpleTaskRunner& task_runner);
brianderson 2014/08/20 20:04:31 Instead of having such a strong dependency on the
mithro-old 2014/08/21 17:39:18 I feel like as the system evolved it might want mo
+BeginFrameArgs CreateExpiredBeginFrameArgsForTesting(
+ const OrderedSimpleTaskRunner& task_runner);
+
// gtest helpers -- these *must* be in the same namespace as the types they
// operate on.

Powered by Google App Engine
This is Rietveld 408576698