From df9530dd71ca1586b013ee8994d63d352f5a06cc Mon Sep 17 00:00:00 2001 From: "thomasvl@chromium.org" Date: Thu, 11 Jun 2009 20:16:23 +0000 Subject: 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 --- chrome/test/ui/v8_benchmark_uitest.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'chrome/test/ui/v8_benchmark_uitest.cc') 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 -- cgit v1.1