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

Unified Diff: tests/exception_test/exception_test.c

Issue 14876015: Add wrapper library for the nacl_irt_exception_handling IRT interface (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Cleanup + remove minidump_generator.gyp for now because of pthread.h problem in Gyp build Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/exception_test/exception_crash_test.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/exception_test/exception_test.c
diff --git a/tests/exception_test/exception_test.c b/tests/exception_test/exception_test.c
index db4eef0acfa0a8045158cd156c66e3cea9abd934..33e079e2e79b592e7865e70c68b318107437e6e8 100644
--- a/tests/exception_test/exception_test.c
+++ b/tests/exception_test/exception_test.c
@@ -21,8 +21,6 @@
#include "native_client/tests/inbrowser_test_runner/test_runner.h"
-typedef void (*handler_func_t)(struct NaClExceptionContext *context);
-
/*
* This is used for calculating the size of the exception stack frame
* when alignment is taken into account.
@@ -240,7 +238,7 @@ void test_exception_stack_alignments(void) {
void test_getting_previous_handler(void) {
int rc;
- handler_func_t prev_handler;
+ nacl_exception_handler_t prev_handler;
rc = NACL_SYSCALL(exception_handler)(exception_handler, NULL);
assert(rc == 0);
@@ -256,8 +254,8 @@ void test_getting_previous_handler(void) {
void test_invalid_handlers(void) {
int rc;
- handler_func_t unaligned_func_ptr =
- (handler_func_t) ((uintptr_t) exception_handler + 1);
+ nacl_exception_handler_t unaligned_func_ptr =
+ (nacl_exception_handler_t) ((uintptr_t) exception_handler + 1);
const char *ptr_in_rodata_segment = "";
/* An alignment check is required for safety in all NaCl sandboxes. */
@@ -266,7 +264,7 @@ void test_invalid_handlers(void) {
/* A range check is required for safety in the NaCl ARM sandbox. */
rc = NACL_SYSCALL(exception_handler)(
- (handler_func_t) (uintptr_t) ptr_in_rodata_segment, NULL);
+ (nacl_exception_handler_t) (uintptr_t) ptr_in_rodata_segment, NULL);
assert(rc == -EFAULT);
}
« no previous file with comments | « tests/exception_test/exception_crash_test.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698