summaryrefslogtreecommitdiffstats
path: root/chrome/chrome_tests.gypi
diff options
context:
space:
mode:
authorukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 07:40:28 +0000
committerukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-25 07:40:28 +0000
commitaa63fd306939e4edef29c8f490a4a23386cba034 (patch)
treef911b815e2a1fa3a53e7a236dc753d9d2fb5fd7a /chrome/chrome_tests.gypi
parenta2dac37922dd4681bc636252adf06df14bda100a (diff)
downloadchromium_src-aa63fd306939e4edef29c8f490a4a23386cba034.zip
chromium_src-aa63fd306939e4edef29c8f490a4a23386cba034.tar.gz
chromium_src-aa63fd306939e4edef29c8f490a4a23386cba034.tar.bz2
Revert 86572 - Revert 86568 - Add initial framework for performance tests that measure frame rate.
Add the "blank page" test, which just scrolls a page with a very large body. The actual frame rate measurement is based on the webkitRequestAnimationFrame callback. The framework records how frequently that API generates a callback. If it generates a callback at 60 FPS, then we know nothing is slowing us down. This of course assumes that webkitRequestAnimationFrame is well implemented. The advantage of this test framework over one that directly reads a framerate from Chromium is that this one works outside of the test harness. You can just navigate your browser to the test file and run the test manually. R=brettw,nduca Review URL: http://codereview.chromium.org/7038052 TBR=darin@chromium.org BUG=none TEST=none TBR= git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86580 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_tests.gypi')
-rw-r--r--chrome/chrome_tests.gypi44
1 files changed, 44 insertions, 0 deletions
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi
index 0c90bf8..61a7cc4 100644
--- a/chrome/chrome_tests.gypi
+++ b/chrome/chrome_tests.gypi
@@ -2880,6 +2880,50 @@
],
},
{
+ 'target_name': 'performance_ui_tests',
+ 'type': 'executable',
+ 'msvs_guid': 'C3539D2F-B87A-4F9B-8220-1BB5F7119720',
+ 'dependencies': [
+ 'chrome',
+ 'chrome_resources',
+ 'chrome_strings',
+ 'debugger',
+ 'test_support_common',
+ 'test_support_ui',
+ '../base/base.gyp:base',
+ '../skia/skia.gyp:skia',
+ '../testing/gtest.gyp:gtest',
+ ],
+ 'sources': [
+ # TODO(darin): Move other UIPerfTests here.
+ 'test/perf/frame_rate/frame_rate_tests.cc',
+ ],
+ 'conditions': [
+ ['OS=="win" and buildtype=="Official"', {
+ 'configurations': {
+ 'Release': {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WholeProgramOptimization': 'false',
+ },
+ },
+ },
+ },
+ },],
+ ['OS=="linux"', {
+ 'dependencies': [
+ '../build/linux/system.gyp:gtk',
+ '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
+ ],
+ }],
+ ['toolkit_views==1', {
+ 'dependencies': [
+ '../views/views.gyp:views',
+ ],
+ }],
+ ],
+ },
+ {
'target_name': 'tab_switching_test',
'type': 'executable',
'msvs_guid': 'A34770EA-A574-43E8-9327-F79C04770E98',