Chromium Code Reviews| Index: ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.cc |
| diff --git a/ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.cc b/ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.cc |
| index 4a2be032731be7a5ffebef73a7099a2938003c12..717057b7eb57da7881fc6ef5bb3c020b7026ba21 100644 |
| --- a/ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.cc |
| +++ b/ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.cc |
| @@ -29,6 +29,8 @@ |
| #include "ppapi/c/ppb_url_request_info.h" |
| #include "ppapi/c/ppb_url_response_info.h" |
| #include "ppapi/c/ppb_var.h" |
| +#include "ppapi/c/private/ppb_tcp_socket_private.h" |
| +#include "ppapi/c/private/ppb_udp_socket_private.h" |
| #include "native_client/tests/ppapi_test_lib/get_browser_interface.h" |
| #include "native_client/tests/ppapi_test_lib/internal_utils.h" |
| @@ -122,6 +124,16 @@ const PPB_URLLoader* PPBURLLoader() { |
| GetBrowserInterfaceSafe(PPB_URLLOADER_INTERFACE)); |
| } |
| +const PPB_TCPSocket_Private* PPBTCPSocketPrivate() { |
| + return reinterpret_cast<const PPB_TCPSocket_Private*>( |
| + GetBrowserInterfaceSafe(PPB_TCPSOCKET_PRIVATE_INTERFACE)); |
|
polina
2011/11/18 09:52:10
Won't there be some kind of switch for these inter
Dmitry Polukhin
2011/11/18 10:20:43
I think interfaces will be always available. But C
|
| +} |
| + |
| +const PPB_UDPSocket_Private* PPBUDPSocketPrivate() { |
| + return reinterpret_cast<const PPB_UDPSocket_Private*>( |
| + GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); |
| +} |
| + |
| const PPB_URLRequestInfo* PPBURLRequestInfo() { |
| return reinterpret_cast<const PPB_URLRequestInfo*>( |
| GetBrowserInterfaceSafe(PPB_URLREQUESTINFO_INTERFACE)); |