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

Unified Diff: trunk/src/chrome/test/data/nacl/irt_exception/irt_exception_test.cc

Issue 265433002: Revert 266968 "NonSFI NaCl: Plumb Exception IRT enough for break..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/chrome/test/data/nacl/irt_exception/irt_exception_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/test/data/nacl/irt_exception/irt_exception_test.cc
===================================================================
--- trunk/src/chrome/test/data/nacl/irt_exception/irt_exception_test.cc (revision 266986)
+++ trunk/src/chrome/test/data/nacl/irt_exception/irt_exception_test.cc (working copy)
@@ -1,46 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <setjmp.h>
-#include <stdio.h>
-
-#include "native_client/src/include/nacl/nacl_exception.h"
-#include "ppapi/native_client/tests/ppapi_test_lib/test_interface.h"
-
-namespace {
-
-jmp_buf g_jmp_buf;
-
-void MyNaClExceptionHandler(struct NaClExceptionContext* context) {
- printf("--- MyNaClExceptionHandler\n");
- longjmp(g_jmp_buf, 1);
-}
-
-void CrashViaSignalHandler() {
- printf("--- CrashViaSignalHandler\n");
-
- int retval = nacl_exception_set_handler(MyNaClExceptionHandler);
- if (retval != 0) {
- printf("Unexpected return value from nacl_exception_set_handler: %d\n",
- retval);
- TEST_FAILED;
- return;
- }
-
- if (setjmp(g_jmp_buf)) {
- printf("Returned via longjmp\n");
- TEST_PASSED;
- return;
- }
- printf("Going to crash\n");
- __builtin_trap();
-}
-
-} // namespace
-
-void SetupTests() {
- RegisterTest("CrashViaSignalHandler", CrashViaSignalHandler);
-}
-
-void SetupPluginInterfaces() {}
« no previous file with comments | « no previous file | trunk/src/chrome/test/data/nacl/irt_exception/irt_exception_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698