OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 5 #ifndef CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
6 #define CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 6 #define CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 #endif | 212 #endif |
213 | 213 |
214 // Currently, translation from pexe to non-sfi nexe is supported only for | 214 // Currently, translation from pexe to non-sfi nexe is supported only for |
215 // x86-32 or ARM binary. | 215 // x86-32 or ARM binary. |
216 #if defined(OS_LINUX) && (defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARMEL)) | 216 #if defined(OS_LINUX) && (defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARMEL)) |
217 # define MAYBE_PNACL_NONSFI(test_case) test_case | 217 # define MAYBE_PNACL_NONSFI(test_case) test_case |
218 #else | 218 #else |
219 # define MAYBE_PNACL_NONSFI(test_case) DISABLED_##test_case | 219 # define MAYBE_PNACL_NONSFI(test_case) DISABLED_##test_case |
220 #endif | 220 #endif |
221 | 221 |
222 // Similar to MAYBE_TRANSITIONAL_NONSFI, this is available only on x86-32 or | 222 // Similar to MAYBE_TRANSITIONAL_NONSFI, this is available only on x86-32, |
223 // ARM. | 223 // x86-64 or ARM linux. |
224 // TODO(hidehiko,mazda): Merge this to the MAYBE_PNACL_NONSFI when it is | 224 #if defined(OS_LINUX) && \ |
225 // supported on x86-64. | 225 (defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARMEL)) |
226 #if defined(OS_LINUX) && (defined(ARCH_CPU_X86) || defined(ARCH_CPU_ARMEL)) | |
227 # define MAYBE_PNACL_TRANSITIONAL_NONSFI(test_case) test_case | 226 # define MAYBE_PNACL_TRANSITIONAL_NONSFI(test_case) test_case |
228 #else | 227 #else |
229 # define MAYBE_PNACL_TRANSITIONAL_NONSFI(test_case) DISABLED_##test_case | 228 # define MAYBE_PNACL_TRANSITIONAL_NONSFI(test_case) DISABLED_##test_case |
230 #endif | 229 #endif |
231 | 230 |
232 | 231 |
233 #define NACL_BROWSER_TEST_F(suite, name, body) \ | 232 #define NACL_BROWSER_TEST_F(suite, name, body) \ |
234 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ | 233 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ |
235 body \ | 234 body \ |
236 IN_PROC_BROWSER_TEST_F(suite##GLibc, MAYBE_GLIBC(name)) \ | 235 IN_PROC_BROWSER_TEST_F(suite##GLibc, MAYBE_GLIBC(name)) \ |
237 body \ | 236 body \ |
238 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ | 237 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ |
239 body | 238 body |
240 | 239 |
241 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 240 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
OLD | NEW |