OLD | NEW |
1 // Copyright (c) 2011 The Native Client 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 // 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 // |
11 // Sample Usage: | 11 // Sample Usage: |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 // Interface pointers and ids corresponding to this plugin; | 165 // Interface pointers and ids corresponding to this plugin; |
166 // set at initialization/creation. | 166 // set at initialization/creation. |
167 PP_Instance pp_instance(); | 167 PP_Instance pp_instance(); |
168 PP_Module pp_module(); | 168 PP_Module pp_module(); |
169 | 169 |
170 // If you are providing your own version of PPP_Instance::DidCreate | 170 // If you are providing your own version of PPP_Instance::DidCreate |
171 // call this function to ensure proper test set-up. | 171 // call this function to ensure proper test set-up. |
172 PP_Bool DidCreateDefault(PP_Instance instance, | 172 PP_Bool DidCreateDefault(PP_Instance instance, |
173 uint32_t argc, const char* argn[], const char* argv[]); | 173 uint32_t argc, const char* argn[], const char* argv[]); |
| 174 // Other default implementations of the required PPP_Instance functions. |
| 175 void DidDestroyDefault(PP_Instance instance); |
| 176 void DidChangeViewDefault(PP_Instance instance, |
| 177 const struct PP_Rect* position, |
| 178 const struct PP_Rect* clip); |
| 179 void DidChangeFocusDefault(PP_Instance instance, PP_Bool has_focus); |
| 180 PP_Bool HandleDocumentLoadDefault(PP_Instance instance, PP_Resource url_loader); |
174 | 181 |
175 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H | 182 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H |
OLD | NEW |