| 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 #include "chrome/test/nacl/nacl_browsertest_util.h" | 5 #include "chrome/test/nacl/nacl_browsertest_util.h" |
| 6 | 6 |
| 7 namespace { | 7 namespace { |
| 8 | 8 |
| 9 // These tests fail on Linux ASAN bots: <http://crbug.com/161709>. | 9 // These tests fail on Linux ASAN bots: <http://crbug.com/161709>. |
| 10 #if defined(OS_LINUX) && defined(ADDRESS_SANITIZER) | 10 #if defined(OS_LINUX) && defined(ADDRESS_SANITIZER) |
| 11 #define MAYBE_SimpleLoad DISABLED_SimpleLoad | 11 #define MAYBE_SimpleLoad DISABLED_SimpleLoad |
| 12 #define MAYBE_ExitStatus0 DISABLED_ExitStatus0 | 12 #define MAYBE_ExitStatus0 DISABLED_ExitStatus0 |
| 13 #define MAYBE_ExitStatus254 DISABLED_ExitStatus254 | 13 #define MAYBE_ExitStatus254 DISABLED_ExitStatus254 |
| 14 #define MAYBE_ExitStatusNeg2 DISABLED_ExitStatusNeg2 | 14 #define MAYBE_ExitStatusNeg2 DISABLED_ExitStatusNeg2 |
| 15 #define MAYBE_PPAPICore DISABLED_PPAPICore | 15 #define MAYBE_PPAPICore DISABLED_PPAPICore |
| 16 #define MAYBE_ProgressEvents DISABLED_ProgressEvents | 16 #define MAYBE_ProgressEvents DISABLED_ProgressEvents |
| 17 #define MAYBE_PnaclMimeType DISABLED_PnaclMimeType | |
| 18 #define MAYBE_CrossOriginCORS DISABLED_CrossOriginCORS | 17 #define MAYBE_CrossOriginCORS DISABLED_CrossOriginCORS |
| 19 #define MAYBE_CrossOriginFail DISABLED_CrossOriginFail | 18 #define MAYBE_CrossOriginFail DISABLED_CrossOriginFail |
| 20 #define MAYBE_SameOriginCookie DISABLED_SameOriginCookie | 19 #define MAYBE_SameOriginCookie DISABLED_SameOriginCookie |
| 21 #define MAYBE_CORSNoCookie DISABLED_CORSNoCookie | 20 #define MAYBE_CORSNoCookie DISABLED_CORSNoCookie |
| 22 #else | 21 #else |
| 23 #define MAYBE_SimpleLoad SimpleLoad | 22 #define MAYBE_SimpleLoad SimpleLoad |
| 24 #define MAYBE_ExitStatus0 ExitStatus0 | 23 #define MAYBE_ExitStatus0 ExitStatus0 |
| 25 #define MAYBE_ExitStatus254 ExitStatus254 | 24 #define MAYBE_ExitStatus254 ExitStatus254 |
| 26 #define MAYBE_ExitStatusNeg2 ExitStatusNeg2 | 25 #define MAYBE_ExitStatusNeg2 ExitStatusNeg2 |
| 27 #define MAYBE_PPAPICore PPAPICore | 26 #define MAYBE_PPAPICore PPAPICore |
| 28 #define MAYBE_ProgressEvents ProgressEvents | 27 #define MAYBE_ProgressEvents ProgressEvents |
| 29 #define MAYBE_PnaclMimeType PnaclMimeType | |
| 30 #define MAYBE_CrossOriginCORS CrossOriginCORS | 28 #define MAYBE_CrossOriginCORS CrossOriginCORS |
| 31 #define MAYBE_CrossOriginFail CrossOriginFail | 29 #define MAYBE_CrossOriginFail CrossOriginFail |
| 32 #define MAYBE_SameOriginCookie SameOriginCookie | 30 #define MAYBE_SameOriginCookie SameOriginCookie |
| 33 #define MAYBE_CORSNoCookie CORSNoCookie | 31 #define MAYBE_CORSNoCookie CORSNoCookie |
| 34 #endif | 32 #endif |
| 35 | 33 |
| 36 NACL_BROWSER_TEST_F(NaClBrowserTest, MAYBE_SimpleLoad, { | 34 NACL_BROWSER_TEST_F(NaClBrowserTest, MAYBE_SimpleLoad, { |
| 37 RunLoadTest(FILE_PATH_LITERAL("nacl_load_test.html")); | 35 RunLoadTest(FILE_PATH_LITERAL("nacl_load_test.html")); |
| 38 }) | 36 }) |
| 39 | 37 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 53 }) | 51 }) |
| 54 | 52 |
| 55 NACL_BROWSER_TEST_F(NaClBrowserTest, MAYBE_PPAPICore, { | 53 NACL_BROWSER_TEST_F(NaClBrowserTest, MAYBE_PPAPICore, { |
| 56 RunNaClIntegrationTest(FILE_PATH_LITERAL("ppapi_ppb_core.html")); | 54 RunNaClIntegrationTest(FILE_PATH_LITERAL("ppapi_ppb_core.html")); |
| 57 }) | 55 }) |
| 58 | 56 |
| 59 NACL_BROWSER_TEST_F(NaClBrowserTest, MAYBE_ProgressEvents, { | 57 NACL_BROWSER_TEST_F(NaClBrowserTest, MAYBE_ProgressEvents, { |
| 60 RunNaClIntegrationTest(FILE_PATH_LITERAL("ppapi_progress_events.html")); | 58 RunNaClIntegrationTest(FILE_PATH_LITERAL("ppapi_progress_events.html")); |
| 61 }) | 59 }) |
| 62 | 60 |
| 63 NACL_BROWSER_TEST_F(NaClBrowserTest, MAYBE_PnaclMimeType, { | |
| 64 RunLoadTest(FILE_PATH_LITERAL("pnacl_mime_type.html")); | |
| 65 }) | |
| 66 | |
| 67 IN_PROC_BROWSER_TEST_F(NaClBrowserTestStatic, MAYBE_CrossOriginCORS) { | 61 IN_PROC_BROWSER_TEST_F(NaClBrowserTestStatic, MAYBE_CrossOriginCORS) { |
| 68 RunLoadTest(FILE_PATH_LITERAL("cross_origin/cors.html")); | 62 RunLoadTest(FILE_PATH_LITERAL("cross_origin/cors.html")); |
| 69 } | 63 } |
| 70 | 64 |
| 71 IN_PROC_BROWSER_TEST_F(NaClBrowserTestStatic, MAYBE_CrossOriginFail) { | 65 IN_PROC_BROWSER_TEST_F(NaClBrowserTestStatic, MAYBE_CrossOriginFail) { |
| 72 RunLoadTest(FILE_PATH_LITERAL("cross_origin/fail.html")); | 66 RunLoadTest(FILE_PATH_LITERAL("cross_origin/fail.html")); |
| 73 } | 67 } |
| 74 | 68 |
| 75 IN_PROC_BROWSER_TEST_F(NaClBrowserTestStatic, MAYBE_SameOriginCookie) { | 69 IN_PROC_BROWSER_TEST_F(NaClBrowserTestStatic, MAYBE_SameOriginCookie) { |
| 76 RunLoadTest(FILE_PATH_LITERAL("cross_origin/same_origin_cookie.html")); | 70 RunLoadTest(FILE_PATH_LITERAL("cross_origin/same_origin_cookie.html")); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 105 RunLoadTest(FILE_PATH_LITERAL("pnacl_options.html?use_nmf=time_passes")); | 99 RunLoadTest(FILE_PATH_LITERAL("pnacl_options.html?use_nmf=time_passes")); |
| 106 } | 100 } |
| 107 | 101 |
| 108 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnacl, | 102 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnacl, |
| 109 MAYBE_PNACL(PnaclDyncodeSyscallDisabled)) { | 103 MAYBE_PNACL(PnaclDyncodeSyscallDisabled)) { |
| 110 RunNaClIntegrationTest(FILE_PATH_LITERAL( | 104 RunNaClIntegrationTest(FILE_PATH_LITERAL( |
| 111 "pnacl_dyncode_syscall_disabled.html")); | 105 "pnacl_dyncode_syscall_disabled.html")); |
| 112 } | 106 } |
| 113 | 107 |
| 114 } // namespace anonymous | 108 } // namespace anonymous |
| OLD | NEW |