diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 20:16:23 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-11 20:16:23 +0000 |
commit | df9530dd71ca1586b013ee8994d63d352f5a06cc (patch) | |
tree | 8ebe93cd7d2259d7ce1633aa258322a3d994bedd /chrome/test/ui/v8_benchmark_uitest.cc | |
parent | b66b7bd470570965c5e9a675953593f459bb51ac (diff) | |
download | chromium_src-df9530dd71ca1586b013ee8994d63d352f5a06cc.zip chromium_src-df9530dd71ca1586b013ee8994d63d352f5a06cc.tar.gz chromium_src-df9530dd71ca1586b013ee8994d63d352f5a06cc.tar.bz2 |
Enabled the v8 benchmark tests on mac/linux.
Review URL: http://codereview.chromium.org/122045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18191 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/v8_benchmark_uitest.cc')
-rw-r--r-- | chrome/test/ui/v8_benchmark_uitest.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/test/ui/v8_benchmark_uitest.cc b/chrome/test/ui/v8_benchmark_uitest.cc index 5d16776..103e47a 100644 --- a/chrome/test/ui/v8_benchmark_uitest.cc +++ b/chrome/test/ui/v8_benchmark_uitest.cc @@ -127,14 +127,18 @@ class V8BenchmarkReferenceTest : public V8BenchmarkTest { FilePath dir; PathService::Get(chrome::DIR_TEST_TOOLS, &dir); dir = dir.AppendASCII("reference_build"); +#if defined(OS_WIN) dir = dir.AppendASCII("chrome"); +#elif defined(OS_LINUX) + dir = dir.AppendASCII("chrome_linux"); +#elif defined(OS_MACOSX) + dir = dir.AppendASCII("chrome_mac"); +#endif browser_directory_ = dir; UITest::SetUp(); } }; -} // namespace - TEST_F(V8BenchmarkTest, Perf) { if (!CommandLine::ForCurrentProcess()->HasSwitch(kRunV8Benchmark)) return; @@ -148,3 +152,5 @@ TEST_F(V8BenchmarkReferenceTest, Perf) { RunTest(); } + +} // namespace |