diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 23:46:45 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 23:46:45 +0000 |
commit | e8ef09a6c4c3ee5282162eb64cfa05206fbf9513 (patch) | |
tree | 9f42dc13381cf2d8c62ecc18172b4f22b33d3e7a /chrome/chrome.gyp | |
parent | 1631786f88bf717d59da40603fdb882191beae8b (diff) | |
download | chromium_src-e8ef09a6c4c3ee5282162eb64cfa05206fbf9513.zip chromium_src-e8ef09a6c4c3ee5282162eb64cfa05206fbf9513.tar.gz chromium_src-e8ef09a6c4c3ee5282162eb64cfa05206fbf9513.tar.bz2 |
Add targets for page_cycler_tests, perf_tests and startup_tests. Listed
minimal dependencies to build on Linux, Windows will need more.
Make a 'test_support_base' library containing the .cc files used
in common by perf tests in both net and chrome.
Review URL: http://codereview.chromium.org/48021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r-- | chrome/chrome.gyp | 86 |
1 files changed, 84 insertions, 2 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 9eab1fb..107bc47 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -1715,6 +1715,7 @@ '..', ], 'sources': [ + 'test/testing_browser_process.h', 'test/ui/npapi_test_helper.cc', 'test/ui/npapi_test_helper.h', 'test/ui/run_all_unittests.cc', @@ -2171,8 +2172,89 @@ }, ], # 'actions' }, - ]}, # 'targets' - ], # OS=="mac" + ] + }, { # else: OS != "mac" + 'targets': [ + { + 'target_name': 'page_cycler_tests', + 'type': 'executable', + 'dependencies': [ + 'resources', + 'test_support_ui', + '../base/base.gyp:base', + '../skia/skia.gyp:skia', + '../testing/gtest.gyp:gtest', + ], + 'sources': [ + 'test/page_cycler/page_cycler_test.cc', + 'tools/build/win/precompiled.cc', + 'tools/build/win/precompiled.h', + ], + 'conditions': [ + ['OS!="win"', { + 'sources!': [ + 'tools/build/win/precompiled.cc', + 'tools/build/win/precompiled.h', + ], + }], + ], + }, + { + 'target_name': 'perf_tests', + 'type': 'executable', + 'dependencies': [ + 'browser', + 'common', + 'resources', + '../base/base.gyp:base', + '../base/base.gyp:test_support_base', + '../skia/skia.gyp:skia', + '../testing/gtest.gyp:gtest', + ], + 'sources': [ + 'browser/visitedlink_perftest.cc', + 'test/perf/perftests.cc', + 'test/perf/url_parse_perftest.cc', + ], + 'conditions': [ + ['OS=="linux"', { + 'sources!': [ + # TODO(port): + 'browser/visitedlink_perftest.cc', + ], + }], + ], + }, + { + 'target_name': 'startup_tests', + 'type': 'executable', + 'dependencies': [ + 'browser', + 'common', + 'resources', + 'test_support_ui', + '../base/base.gyp:base', + '../skia/skia.gyp:skia', + '../testing/gtest.gyp:gtest', + ], + 'sources': [ + 'test/startup/feature_startup_test.cc', + 'test/startup/startup_test.cc', + 'tools/build/win/precompiled.cc', + 'tools/build/win/precompiled.h', + ], + 'conditions': [ + ['OS!="win"', { + 'sources!': [ + 'test/startup/feature_startup_test.cc', + 'tools/build/win/precompiled.cc', + 'tools/build/win/precompiled.h', + ], + }], + ], + }, + ], + }], # OS!="mac" ['OS=="win"', { 'targets': [ { |