| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 The Native Client 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 // Functions and constants for test registration and setup. | 5 // Functions and constants for test registration and setup. |
| 6 // | 6 // |
| 7 // NOTE: These must be implemented by the tester: | 7 // NOTE: These must be implemented by the tester: |
| 8 // - SetupTests() | 8 // - SetupTests() |
| 9 // - SetupPluginInterfaces() | 9 // - SetupPluginInterfaces() |
| 10 // | 10 // |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // const PPP_Bar ppp_bar_interface = { ... }; | 48 // const PPP_Bar ppp_bar_interface = { ... }; |
| 49 // | 49 // |
| 50 // void SetupPluginInterface() { | 50 // void SetupPluginInterface() { |
| 51 // RegisterPluginInterface(PPP_BAR_INTERFACE, &ppp_bar_interface); | 51 // RegisterPluginInterface(PPP_BAR_INTERFACE, &ppp_bar_interface); |
| 52 // } | 52 // } |
| 53 // | 53 // |
| 54 | 54 |
| 55 #ifndef NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H | 55 #ifndef NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H |
| 56 #define NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H | 56 #define NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H |
| 57 | 57 |
| 58 #include <stdio.h> |
| 58 #include <limits> | 59 #include <limits> |
| 59 | 60 |
| 60 #include "native_client/src/include/nacl_string.h" | 61 #include "native_client/src/include/nacl_string.h" |
| 61 | 62 |
| 62 #include "ppapi/c/pp_completion_callback.h" | 63 #include "ppapi/c/pp_completion_callback.h" |
| 63 #include "ppapi/c/pp_instance.h" | 64 #include "ppapi/c/pp_instance.h" |
| 64 #include "ppapi/c/pp_module.h" | 65 #include "ppapi/c/pp_module.h" |
| 65 #include "ppapi/c/pp_resource.h" | 66 #include "ppapi/c/pp_resource.h" |
| 66 #include "ppapi/c/pp_var.h" | 67 #include "ppapi/c/pp_var.h" |
| 67 | 68 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // 00 - module, 01 - instance, 10 - resource, 11 - var. | 140 // 00 - module, 01 - instance, 10 - resource, 11 - var. |
| 140 const PP_Instance kNotAnInstance = 0xFFFFF0; | 141 const PP_Instance kNotAnInstance = 0xFFFFF0; |
| 141 const PP_Resource kNotAResource = 0xAAAAA0; | 142 const PP_Resource kNotAResource = 0xAAAAA0; |
| 142 | 143 |
| 143 // Interface pointers and ids corresponding to this plugin; | 144 // Interface pointers and ids corresponding to this plugin; |
| 144 // set at initialization/creation. | 145 // set at initialization/creation. |
| 145 PP_Instance pp_instance(); | 146 PP_Instance pp_instance(); |
| 146 PP_Module pp_module(); | 147 PP_Module pp_module(); |
| 147 | 148 |
| 148 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H | 149 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H |
| OLD | NEW |