| 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 // 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 22 matching lines...) Expand all Loading... |
| 33 // const PPP_Bar ppp_bar_interface = { ... }; | 33 // const PPP_Bar ppp_bar_interface = { ... }; |
| 34 // | 34 // |
| 35 // void SetupPluginInterface() { | 35 // void SetupPluginInterface() { |
| 36 // RegisterPluginInterface(PPP_BAR_INTERFACE, &ppp_bar_interface); | 36 // RegisterPluginInterface(PPP_BAR_INTERFACE, &ppp_bar_interface); |
| 37 // } | 37 // } |
| 38 // | 38 // |
| 39 | 39 |
| 40 #ifndef NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H | 40 #ifndef NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H |
| 41 #define NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H | 41 #define NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H |
| 42 | 42 |
| 43 #include <stdint.h> |
| 43 #include <stdio.h> | 44 #include <stdio.h> |
| 44 #include <limits> | 45 #include <limits> |
| 45 | 46 |
| 46 #include <sstream> | 47 #include <sstream> |
| 47 | 48 |
| 48 #include "native_client/src/include/nacl_string.h" | 49 #include "native_client/src/include/nacl_string.h" |
| 49 | 50 |
| 50 #include "ppapi/c/pp_completion_callback.h" | 51 #include "ppapi/c/pp_completion_callback.h" |
| 51 #include "ppapi/c/pp_instance.h" | 52 #include "ppapi/c/pp_instance.h" |
| 52 #include "ppapi/c/pp_module.h" | 53 #include "ppapi/c/pp_module.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 PP_Resource CreateImageData(PP_Size size, ColorPremul pixel_color, void** bmp); | 216 PP_Resource CreateImageData(PP_Size size, ColorPremul pixel_color, void** bmp); |
| 216 | 217 |
| 217 | 218 |
| 218 // Checks if the image rect of |color| and |size| is on the screen at |origin|. | 219 // Checks if the image rect of |color| and |size| is on the screen at |origin|. |
| 219 bool IsImageRectOnScreen(PP_Resource graphics2d, | 220 bool IsImageRectOnScreen(PP_Resource graphics2d, |
| 220 PP_Point origin, | 221 PP_Point origin, |
| 221 PP_Size size, | 222 PP_Size size, |
| 222 ColorPremul color); | 223 ColorPremul color); |
| 223 | 224 |
| 224 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H | 225 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_PPB_TEMPLATE_TEST_INTERFACE_H |
| OLD | NEW |