summaryrefslogtreecommitdiffstats
path: root/toolkit/crashreporter/test/CrashTestUtils.jsm
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-01 13:05:24 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-01 13:05:24 +0200
commitff2f287f82630ab3887d7d5c1e64e5b888ea0beb (patch)
tree4e96cb32aa2320a327024942d247c6b56ef8c199 /toolkit/crashreporter/test/CrashTestUtils.jsm
parentbfc97728065cbbc7f6bbc281b654a2d1e079b48d (diff)
downloadUXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar
UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.gz
UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.lz
UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.xz
UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.zip
Remove crashreporter toolkit files.
Resolves #20
Diffstat (limited to 'toolkit/crashreporter/test/CrashTestUtils.jsm')
-rw-r--r--toolkit/crashreporter/test/CrashTestUtils.jsm72
1 files changed, 0 insertions, 72 deletions
diff --git a/toolkit/crashreporter/test/CrashTestUtils.jsm b/toolkit/crashreporter/test/CrashTestUtils.jsm
deleted file mode 100644
index 70162ab63..000000000
--- a/toolkit/crashreporter/test/CrashTestUtils.jsm
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/ */
-
-this.EXPORTED_SYMBOLS = ["CrashTestUtils"];
-
-this.CrashTestUtils = {
- // These will be defined using ctypes APIs below.
- crash: null,
- lockDir: null,
- dumpHasStream: null,
- dumpHasInstructionPointerMemory: null,
-
- // Constants for crash()
- // Keep these in sync with nsTestCrasher.cpp!
- CRASH_INVALID_POINTER_DEREF: 0,
- CRASH_PURE_VIRTUAL_CALL: 1,
- CRASH_RUNTIMEABORT: 2,
- CRASH_OOM: 3,
- CRASH_MOZ_CRASH: 4,
- CRASH_ABORT: 5,
-
- // Constants for dumpHasStream()
- // From google_breakpad/common/minidump_format.h
- MD_THREAD_LIST_STREAM: 3,
- MD_MEMORY_INFO_LIST_STREAM: 16
-};
-
-// Grab APIs from the testcrasher shared library
-Components.utils.import("resource://gre/modules/Services.jsm");
-Components.utils.import("resource://gre/modules/ctypes.jsm");
-var dir = Services.dirsvc.get("CurWorkD", Components.interfaces.nsILocalFile);
-var file = dir.clone();
-file = file.parent;
-file.append(ctypes.libraryName("testcrasher"));
-var lib = ctypes.open(file.path);
-CrashTestUtils.crash = lib.declare("Crash",
- ctypes.default_abi,
- ctypes.void_t,
- ctypes.int16_t);
-CrashTestUtils.saveAppMemory = lib.declare("SaveAppMemory",
- ctypes.default_abi,
- ctypes.uint64_t);
-
-CrashTestUtils.lockDir = lib.declare("LockDir",
- ctypes.default_abi,
- ctypes.voidptr_t, // nsILocalFile*
- ctypes.voidptr_t); // nsISupports*
-
-
-try {
- CrashTestUtils.TryOverrideExceptionHandler = lib.declare("TryOverrideExceptionHandler",
- ctypes.default_abi,
- ctypes.void_t);
-}
-catch (ex) {}
-
-CrashTestUtils.dumpHasStream = lib.declare("DumpHasStream",
- ctypes.default_abi,
- ctypes.bool,
- ctypes.char.ptr,
- ctypes.uint32_t);
-
-CrashTestUtils.dumpHasInstructionPointerMemory =
- lib.declare("DumpHasInstructionPointerMemory",
- ctypes.default_abi,
- ctypes.bool,
- ctypes.char.ptr);
-
-CrashTestUtils.dumpCheckMemory = lib.declare("DumpCheckMemory",
- ctypes.default_abi,
- ctypes.bool,
- ctypes.char.ptr);