This source file includes following definitions.
- CrashOffMainThreadFunction
- CrashPPAPIOffMainThread
- SetupTests
- SetupPluginInterfaces
#include <pthread.h>
#include "native_client/src/shared/platform/nacl_check.h"
#include "ppapi/c/ppb_url_request_info.h"
#include "ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.h"
#include "ppapi/native_client/tests/ppapi_test_lib/test_interface.h"
namespace {
void* CrashOffMainThreadFunction(void* thread_arg) {
printf("--- CrashPPAPIOffMainThreadFunction\n");
CRASH;
return NULL;
}
void CrashPPAPIOffMainThread() {
printf("--- CrashPPAPIOffMainThread\n");
pthread_t tid;
void* thread_result;
pthread_create(&tid, NULL , CrashOffMainThreadFunction, NULL);
pthread_join(tid, &thread_result);
}
}
void SetupTests() {
RegisterTest("CrashPPAPIOffMainThread", CrashPPAPIOffMainThread);
}
void SetupPluginInterfaces() {
}