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 <stdio.h> | 5 #include <stdio.h> |
6 #if defined(OS_POSIX) | 6 #if defined(OS_POSIX) |
7 #include <unistd.h> | 7 #include <unistd.h> |
8 #elif defined(OS_WIN) | 8 #elif defined(OS_WIN) |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 }) | 158 }) |
159 | 159 |
160 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlib, IrtManifestFile) { | 160 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlib, IrtManifestFile) { |
161 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_manifest_file_test.html")); | 161 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_manifest_file_test.html")); |
162 } | 162 } |
163 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclNonSfi, | 163 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclNonSfi, |
164 MAYBE_PNACL_NONSFI(IrtManifestFile)) { | 164 MAYBE_PNACL_NONSFI(IrtManifestFile)) { |
165 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_manifest_file_test.html")); | 165 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_manifest_file_test.html")); |
166 } | 166 } |
167 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclTransitionalNonSfi, | 167 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclTransitionalNonSfi, |
168 MAYBE_PNACL_TRANSITIONAL_NONSFI(IrtManifestFile)) { | 168 MAYBE_PNACL_NONSFI(IrtManifestFile)) { |
169 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_manifest_file_test.html")); | 169 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_manifest_file_test.html")); |
170 } | 170 } |
171 | 171 |
172 #if defined(OS_WIN) | 172 #if defined(OS_WIN) |
173 // http://crbug.com/416272 | 173 // http://crbug.com/416272 |
174 #define MAYBE_IrtException DISABLED_IrtException | 174 #define MAYBE_IrtException DISABLED_IrtException |
175 #else | 175 #else |
176 #define MAYBE_IrtException IrtException | 176 #define MAYBE_IrtException IrtException |
177 #endif | 177 #endif |
178 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlib, MAYBE_IrtException) { | 178 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlib, MAYBE_IrtException) { |
179 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_exception_test.html")); | 179 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_exception_test.html")); |
180 } | 180 } |
181 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclNonSfi, | 181 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclNonSfi, |
182 MAYBE_PNACL_NONSFI(IrtException)) { | 182 MAYBE_PNACL_NONSFI(IrtException)) { |
183 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_exception_test.html")); | 183 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_exception_test.html")); |
184 } | 184 } |
185 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclTransitionalNonSfi, | 185 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclTransitionalNonSfi, |
186 MAYBE_PNACL_TRANSITIONAL_NONSFI(IrtException)) { | 186 MAYBE_PNACL_NONSFI(IrtException)) { |
187 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_exception_test.html")); | 187 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_exception_test.html")); |
188 } | 188 } |
189 | 189 |
190 // Some versions of Visual Studio does not like preprocessor | 190 // Some versions of Visual Studio does not like preprocessor |
191 // conditionals inside the argument of a macro, so we put the | 191 // conditionals inside the argument of a macro, so we put the |
192 // conditionals on a helper function. We are already in an anonymous | 192 // conditionals on a helper function. We are already in an anonymous |
193 // namespace, so the name of the helper is not visible in external | 193 // namespace, so the name of the helper is not visible in external |
194 // scope. | 194 // scope. |
195 #if defined(OS_POSIX) | 195 #if defined(OS_POSIX) |
196 base::FilePath::StringType NumberOfCoresAsFilePathString() { | 196 base::FilePath::StringType NumberOfCoresAsFilePathString() { |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 } | 412 } |
413 | 413 |
414 // TODO(ncbray) support glibc and PNaCl | 414 // TODO(ncbray) support glibc and PNaCl |
415 // flaky: crbug.com/375894 | 415 // flaky: crbug.com/375894 |
416 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlibExtension, DISABLED_MimeHandler) { | 416 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlibExtension, DISABLED_MimeHandler) { |
417 RunNaClIntegrationTest(FILE_PATH_LITERAL( | 417 RunNaClIntegrationTest(FILE_PATH_LITERAL( |
418 "ppapi_extension_mime_handler.html")); | 418 "ppapi_extension_mime_handler.html")); |
419 } | 419 } |
420 | 420 |
421 } // namespace | 421 } // namespace |
OLD | NEW |