Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: chrome/test/nacl/nacl_browsertest.cc

Issue 230413002: NonSFI NaCl: Plumb Exception IRT enough for breakpad. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 RunNaClIntegrationTest(FILE_PATH_LITERAL( 136 RunNaClIntegrationTest(FILE_PATH_LITERAL(
137 "pm_pre_init_manifest_file_test.html")); 137 "pm_pre_init_manifest_file_test.html"));
138 } 138 }
139 IN_PROC_BROWSER_TEST_F(NaClBrowserTestGLibc, PreInitManifestFile) { 139 IN_PROC_BROWSER_TEST_F(NaClBrowserTestGLibc, PreInitManifestFile) {
140 RunNaClIntegrationTest(FILE_PATH_LITERAL( 140 RunNaClIntegrationTest(FILE_PATH_LITERAL(
141 "pm_pre_init_manifest_file_test.html")); 141 "pm_pre_init_manifest_file_test.html"));
142 } 142 }
143 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlib, IrtManifestFile) { 143 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlib, IrtManifestFile) {
144 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_manifest_file_test.html")); 144 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_manifest_file_test.html"));
145 } 145 }
146 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlib, IrtException) {
147 RunNaClIntegrationTest(FILE_PATH_LITERAL("irt_exception_test.html"));
148 }
146 149
147 NACL_BROWSER_TEST_F(NaClBrowserTest, Nameservice, { 150 NACL_BROWSER_TEST_F(NaClBrowserTest, Nameservice, {
148 RunNaClIntegrationTest(FILE_PATH_LITERAL("pm_nameservice_test.html")); 151 RunNaClIntegrationTest(FILE_PATH_LITERAL("pm_nameservice_test.html"));
149 }) 152 })
150 153
151 // Some versions of Visual Studio does not like preprocessor 154 // Some versions of Visual Studio does not like preprocessor
152 // conditionals inside the argument of a macro, so we put the 155 // conditionals inside the argument of a macro, so we put the
153 // conditionals on a helper function. We are already in an anonymous 156 // conditionals on a helper function. We are already in an anonymous
154 // namespace, so the name of the helper is not visible in external 157 // namespace, so the name of the helper is not visible in external
155 // scope. 158 // scope.
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 } 373 }
371 374
372 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnacl, PnaclMimeType) { 375 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnacl, PnaclMimeType) {
373 RunLoadTest(FILE_PATH_LITERAL("pnacl_mime_type.html")); 376 RunLoadTest(FILE_PATH_LITERAL("pnacl_mime_type.html"));
374 } 377 }
375 378
376 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclDisabled, PnaclMimeType) { 379 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclDisabled, PnaclMimeType) {
377 RunLoadTest(FILE_PATH_LITERAL("pnacl_mime_type.html")); 380 RunLoadTest(FILE_PATH_LITERAL("pnacl_mime_type.html"));
378 } 381 }
379 382
383 // The NonSFI test is currently available only on linux-x86-32
384 // architecture.
385 #if defined(OS_LINUX) && defined(ARCH_CPU_X86)
386 #define MAYBE_NONSFI(test_name) test_name
387 #else
388 #define MAYBE_NONSFI(test_name) DISABLED_##test_name
389 #endif
390
391 IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclNonSfi,
392 MAYBE_NONSFI(IrtException)) {
Mark Seaborn 2014/04/24 23:39:28 Can you put the two IrtException test decls next t
Junichi Uekawa 2014/04/25 01:06:10 Done.
393 RunNaClIntegrationTest(FILE_PATH_LITERAL(
394 "irt_exception_test.html"));
Mark Seaborn 2014/04/24 23:39:28 Nit: fits on previous line?
Junichi Uekawa 2014/04/25 01:06:10 Done.
395 }
396
380 class NaClBrowserTestNewlibStdoutPM : public NaClBrowserTestNewlib { 397 class NaClBrowserTestNewlibStdoutPM : public NaClBrowserTestNewlib {
381 public: 398 public:
382 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { 399 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
383 // Env needs to be set early because nacl_helper is spawned before the test 400 // Env needs to be set early because nacl_helper is spawned before the test
384 // body on Linux. 401 // body on Linux.
385 scoped_ptr<base::Environment> env(base::Environment::Create()); 402 scoped_ptr<base::Environment> env(base::Environment::Create());
386 env->SetVar("NACL_EXE_STDOUT", "DEBUG_ONLY:dev://postmessage"); 403 env->SetVar("NACL_EXE_STDOUT", "DEBUG_ONLY:dev://postmessage");
387 NaClBrowserTestNewlib::SetUpInProcessBrowserTestFixture(); 404 NaClBrowserTestNewlib::SetUpInProcessBrowserTestFixture();
388 } 405 }
389 }; 406 };
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 } 472 }
456 }; 473 };
457 474
458 // TODO(ncbray) support glibc and PNaCl 475 // TODO(ncbray) support glibc and PNaCl
459 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlibExtension, MimeHandler) { 476 IN_PROC_BROWSER_TEST_F(NaClBrowserTestNewlibExtension, MimeHandler) {
460 RunNaClIntegrationTest(FILE_PATH_LITERAL( 477 RunNaClIntegrationTest(FILE_PATH_LITERAL(
461 "ppapi_extension_mime_handler.html")); 478 "ppapi_extension_mime_handler.html"));
462 } 479 }
463 480
464 } // namespace 481 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698