- add sources.
[platform/framework/web/crosswalk.git] / src / ppapi / native_client / tests / ppapi_browser / crash / ppapi_crash_via_check_failure.cc
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "native_client/src/shared/platform/nacl_check.h"
6 #include "ppapi/native_client/tests/ppapi_test_lib/test_interface.h"
7
8 namespace {
9
10 // This will crash a PPP_Messaging function.
11 void CrashViaCheckFailure() {
12   printf("--- CrashViaCheckFailure\n");
13   CHECK(false);
14 }
15
16 }  // namespace
17
18 void SetupTests() {
19   RegisterTest("CrashViaCheckFailure", CrashViaCheckFailure);
20 }
21
22 void SetupPluginInterfaces() {
23   // none
24 }