| Index: chrome/test/nacl/nacl_browsertest_util.h
|
| diff --git a/chrome/test/nacl/nacl_browsertest_util.h b/chrome/test/nacl/nacl_browsertest_util.h
|
| index ac084d0aeb99ce210584c1442e2088ee05a9b371..86d8e62881c493f3651c5ea2ee4165f4bd945165 100644
|
| --- a/chrome/test/nacl/nacl_browsertest_util.h
|
| +++ b/chrome/test/nacl/nacl_browsertest_util.h
|
| @@ -129,12 +129,23 @@ class NaClBrowserTestPnaclNonSfi : public NaClBrowserTestBase {
|
| base::FilePath::StringType Variant() override;
|
| };
|
|
|
| +class NaClBrowserTestPnaclNaClHelperNonSfi
|
| + : public NaClBrowserTestPnaclNonSfi {
|
| + public:
|
| + void SetUpCommandLine(base::CommandLine* command_line) override;
|
| +};
|
| +
|
| class NaClBrowserTestNonSfiMode : public NaClBrowserTestBase {
|
| public:
|
| void SetUpCommandLine(base::CommandLine* command_line) override;
|
| base::FilePath::StringType Variant() override;
|
| };
|
|
|
| +class NaClBrowserTestNaClHelperNonSfi : public NaClBrowserTestNonSfiMode {
|
| + public:
|
| + void SetUpCommandLine(base::CommandLine* command_line) override;
|
| +};
|
| +
|
| // A NaCl browser test only using static files.
|
| class NaClBrowserTestStatic : public NaClBrowserTestBase {
|
| public:
|
| @@ -181,6 +192,16 @@ class NaClBrowserTestGLibcExtension : public NaClBrowserTestGLibc {
|
| # define MAYBE_NONSFI(test_case) DISABLED_##test_case
|
| #endif
|
|
|
| +// Currently, we only supports it on x86-32 architecture.
|
| +// TODO(hidehiko,mazda): Enable this on ARM, too, when it is supported.
|
| +#if defined(OS_LINUX) && !defined(ADDRESS_SANITIZER) && \
|
| + !defined(THREAD_SANITIZER) && !defined(MEMORY_SANITIZER) && \
|
| + !defined(LEAK_SANITIZER) && defined(ARCH_CPU_X86)
|
| +# define MAYBE_NACL_HELPER_NONSFI(test_case) test_case
|
| +#else
|
| +# define MAYBE_NACL_HELPER_NONSFI(test_case) DISABLED_##test_case
|
| +#endif
|
| +
|
| // Currently, translation from pexe to non-sfi nexe is supported only for
|
| // x86-32 or ARM binary.
|
| #if defined(OS_LINUX) && (defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARMEL))
|
| @@ -189,6 +210,16 @@ class NaClBrowserTestGLibcExtension : public NaClBrowserTestGLibc {
|
| # define MAYBE_PNACL_NONSFI(test_case) DISABLED_##test_case
|
| #endif
|
|
|
| +// Similar to MAYBE_NACL_HELPER_NONSFI, this is not available on ARM yet.
|
| +// TODO(hidehiko,mazda): Merge this to the MAYBE_PNACL_NONSFI when it is
|
| +// supported on ARM.
|
| +#if defined(OS_LINUX) && defined(ARCH_CPU_X86)
|
| +# define MAYBE_PNACL_NACL_HELPER_NONSFI(test_case) test_case
|
| +#else
|
| +# define MAYBE_PNACL_NACL_HELPER_NONSFI(test_case) DISABLED_##test_case
|
| +#endif
|
| +
|
| +
|
| #define NACL_BROWSER_TEST_F(suite, name, body) \
|
| IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \
|
| body \
|
|
|