diff options
author | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 23:37:54 +0000 |
---|---|---|
committer | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 23:37:54 +0000 |
commit | 8d4e894cc8c545c36bf5fae51de9e6d847826410 (patch) | |
tree | a49ec14bddb0872c953de41ebfd9face62ceb5ca /chrome/test/nacl/nacl_test.cc | |
parent | 6aae3e899adde6e6a82e33bbdb1982c6592dea31 (diff) | |
download | chromium_src-8d4e894cc8c545c36bf5fae51de9e6d847826410.zip chromium_src-8d4e894cc8c545c36bf5fae51de9e6d847826410.tar.gz chromium_src-8d4e894cc8c545c36bf5fae51de9e6d847826410.tar.bz2 |
Add support for running NaCl-Chrome integration tests on Win64
BUG=28176
TEST=this change
Review URL: http://codereview.chromium.org/791002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/nacl/nacl_test.cc')
-rw-r--r-- | chrome/test/nacl/nacl_test.cc | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/chrome/test/nacl/nacl_test.cc b/chrome/test/nacl/nacl_test.cc index aa3293e..eaf61ce 100644 --- a/chrome/test/nacl/nacl_test.cc +++ b/chrome/test/nacl/nacl_test.cc @@ -8,6 +8,7 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_switches.h" #include "chrome/test/automation/tab_proxy.h" +#include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h" #include "net/base/escape.h" #include "net/base/net_util.h" @@ -59,6 +60,11 @@ NaClTest::NaClTest() #if defined(OS_MACOSX) launch_arguments_.AppendSwitch(switches::kNoSandbox); #endif + +#if defined(OS_WIN) + if (NaClOsIs64BitWindows()) + launch_arguments_.AppendSwitch(switches::kNoSandbox); +#endif } NaClTest::~NaClTest() {} @@ -74,7 +80,16 @@ FilePath NaClTest::GetTestRootDir() { FilePath NaClTest::GetTestBinariesDir() { FilePath path = GetTestRootDir(); path = path.AppendASCII("prebuilt"); - path = path.AppendASCII("x86"); + bool use_x64_nexes = false; +#if defined(OS_WIN) + if (NaClOsIs64BitWindows()) + use_x64_nexes = true; +#endif + + if (use_x64_nexes) + path = path.AppendASCII("x64"); + else + path = path.AppendASCII("x86"); return path; } @@ -241,6 +256,7 @@ int NaClTest::NaClTestTimeout() { } #if defined(OS_MACOSX) +// http://code.google.com/p/nativeclient/issues/detail?id=342 TEST_F(NaClTest, FLAKY_ServerTest) { #else TEST_F(NaClTest, ServerTest) { @@ -250,6 +266,7 @@ TEST_F(NaClTest, ServerTest) { } #if defined(OS_MACOSX) +// http://code.google.com/p/nativeclient/issues/detail?id=342 TEST_F(NaClTest, FLAKY_SrpcHelloWorld) { #else TEST_F(NaClTest, SrpcHelloWorld) { @@ -259,6 +276,7 @@ TEST_F(NaClTest, SrpcHelloWorld) { } #if defined(OS_MACOSX) +// http://code.google.com/p/nativeclient/issues/detail?id=342 TEST_F(NaClTest, FLAKY_SrpcBasicTest) { #else TEST_F(NaClTest, SrpcBasicTest) { @@ -268,6 +286,7 @@ TEST_F(NaClTest, SrpcBasicTest) { } #if defined(OS_MACOSX) +// http://code.google.com/p/nativeclient/issues/detail?id=342 TEST_F(NaClTest, FLAKY_SrpcSockAddrTest) { #else TEST_F(NaClTest, SrpcSockAddrTest) { @@ -277,6 +296,7 @@ TEST_F(NaClTest, SrpcSockAddrTest) { } #if defined(OS_MACOSX) +// http://code.google.com/p/nativeclient/issues/detail?id=342 TEST_F(NaClTest, FLAKY_SrpcShmTest) { #else TEST_F(NaClTest, SrpcShmTest) { @@ -286,6 +306,7 @@ TEST_F(NaClTest, SrpcShmTest) { } #if defined(OS_MACOSX) +// http://code.google.com/p/nativeclient/issues/detail?id=342 TEST_F(NaClTest, FLAKY_SrpcPluginTest) { #else TEST_F(NaClTest, SrpcPluginTest) { @@ -295,6 +316,7 @@ TEST_F(NaClTest, SrpcPluginTest) { } #if defined(OS_MACOSX) +// http://code.google.com/p/nativeclient/issues/detail?id=342 TEST_F(NaClTest, FLAKY_SrpcNrdXferTest) { #else TEST_F(NaClTest, SrpcNrdXferTest) { |