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

Unified Diff: chrome/test/perf/frame_rate/frame_rate_tests.cc

Issue 7329008: Added the reference build to the frame rate test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Redesigned the FRAME_RATE_TEST macro. Created 9 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/perf/frame_rate/frame_rate_tests.cc
diff --git a/chrome/test/perf/frame_rate/frame_rate_tests.cc b/chrome/test/perf/frame_rate/frame_rate_tests.cc
index 52e7de4453113842aa73cbd559bfec545afbc535..0c267c1561cffe37bac36672990543529f143aee 100644
--- a/chrome/test/perf/frame_rate/frame_rate_tests.cc
+++ b/chrome/test/perf/frame_rate/frame_rate_tests.cc
@@ -85,28 +85,17 @@ class FrameRateTest_Reference : public FrameRateTest {
}
};
-TEST_F(FrameRateTest, Blank_Steady) {
- RunTest("blank", "steady", "");
+#define FRAME_RATE_TEST(content, gesture) \
+TEST_F(FrameRateTest, content##_##gesture) { \
+ RunTest(#content, #gesture, ""); \
+} \
+TEST_F(FrameRateTest_Reference, content##_##gesture) { \
+ RunTest(#content, #gesture, "_ref"); \
}
-TEST_F(FrameRateTest, Blank_Reading) {
- RunTest("blank", "reading", "");
-}
-
-TEST_F(FrameRateTest, Blank_Mouse_Wheel) {
- RunTest("blank", "mouse_wheel", "");
-}
-
-TEST_F(FrameRateTest, Blank_Mac_Fling) {
- RunTest("blank", "mac_fling", "");
-}
-
-// TODO(darin): Need to update the reference build to a version that supports
-// the webkitRequestAnimationFrame API.
-#if 0
-TEST_F(FrameRateTest_Reference, Blank) {
- RunTest("blank", "_ref");
-}
-#endif
+FRAME_RATE_TEST(blank, steady);
+FRAME_RATE_TEST(blank, reading);
+FRAME_RATE_TEST(blank, mouse_wheel);
+FRAME_RATE_TEST(blank, mac_fling);
} // namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698