OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Test cases for PPAPI Dev interfaces. | 5 // Test cases for PPAPI Dev interfaces. |
6 // | 6 // |
7 | 7 |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "native_client/src/include/nacl_macros.h" | 10 #include "native_client/src/include/nacl_macros.h" |
11 #include "native_client/src/shared/platform/nacl_check.h" | 11 #include "native_client/src/shared/platform/nacl_check.h" |
12 #include "native_client/src/shared/ppapi_proxy/plugin_nacl_file.h" | 12 #include "native_client/src/shared/ppapi_proxy/plugin_nacl_file.h" |
13 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h" | 13 #include "native_client/tests/ppapi_test_lib/get_browser_interface.h" |
14 #include "native_client/tests/ppapi_test_lib/test_interface.h" | 14 #include "native_client/tests/ppapi_test_lib/test_interface.h" |
15 #include "ppapi/c/pp_bool.h" | 15 #include "ppapi/c/pp_bool.h" |
16 #include "ppapi/c/pp_errors.h" | 16 #include "ppapi/c/pp_errors.h" |
17 #include "ppapi/c/ppb_core.h" | 17 #include "ppapi/c/ppb_core.h" |
18 | 18 |
19 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | 19 #include "ppapi/c/ppb_mouse_cursor.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
24 // Test Cases | 24 // Test Cases |
25 //////////////////////////////////////////////////////////////////////////////// | 25 //////////////////////////////////////////////////////////////////////////////// |
26 | 26 |
27 void TestGetDevInterfaces() { | 27 void TestGetInterfaces() { |
28 // This test is run as a simple embedded .nexe with --enable-nacl. It should | 28 // This test is run as a simple embedded .nexe with --enable-nacl. It should |
29 // have access to all dev interfaces. Only test one to make the test more | 29 // have access to all dev interfaces. Only test one to make the test more |
30 // robust as interfaces change. | 30 // robust as interfaces change. |
31 EXPECT(GetBrowserInterface(PPB_CURSOR_CONTROL_DEV_INTERFACE) != NULL); | 31 EXPECT(GetBrowserInterface(PPB_MOUSE_CURSOR_INTERFACE) != NULL); |
32 | 32 |
33 TEST_PASSED; | 33 TEST_PASSED; |
34 } | 34 } |
35 | 35 |
36 } // namespace | 36 } // namespace |
37 | 37 |
38 void SetupTests() { | 38 void SetupTests() { |
39 RegisterTest("TestGetDevInterfaces", TestGetDevInterfaces); | 39 RegisterTest("TestGetInterfaces", TestGetInterfaces); |
40 } | 40 } |
41 | 41 |
42 void SetupPluginInterfaces() { | 42 void SetupPluginInterfaces() { |
43 // none | 43 // none |
44 } | 44 } |
OLD | NEW |