Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(998)

Unified Diff: ppapi/native_client/tests/ppapi_test_lib/get_browser_interface.cc

Issue 8555002: Added NaCl proxy for TCP/UDP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added PPAPI NaCl tests. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
+}
+
+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));

Powered by Google App Engine
This is Rietveld 408576698