1 // Copyright (c) 2013 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.
6 #include <nacl/nacl_dyncode.h>
12 #include "native_client/src/shared/platform/nacl_check.h"
13 #include "ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.h"
14 #include "ppapi/native_client/tests/ppapi_test_lib/test_interface.h"
18 void TestDyncodeCreate(void) {
19 EXPECT(nacl_dyncode_create(NULL, NULL, 0) == -1);
20 EXPECT(errno == ENOSYS);
25 void TestDyncodeModify(void) {
26 EXPECT(nacl_dyncode_modify(NULL, NULL, 0) == -1);
27 EXPECT(errno == ENOSYS);
32 void TestDyncodeDelete(void) {
33 EXPECT(nacl_dyncode_delete(NULL, 0) == -1);
34 EXPECT(errno == ENOSYS);
42 RegisterTest("TestDyncodeCreate", TestDyncodeCreate);
43 RegisterTest("TestDyncodeModify", TestDyncodeModify);
44 RegisterTest("TestDyncodeDelete", TestDyncodeDelete);
47 void SetupPluginInterfaces() {