From cfff9eb8c2dad715a8d4a7be088d82a9e0fada22 Mon Sep 17 00:00:00 2001 From: "viettrungluu@chromium.org" Date: Tue, 15 Nov 2011 03:17:10 +0000 Subject: Pepper: Add a test for PPB_TCPSocket_Private. Actually, the interface is currently known as PPB_Flash_TCPSocket. BUG=103993 TEST=ui_tests OutOfProcessPPAPITest.TCPSocketPrivate TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/8564034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110026 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/cpp/private/flash_tcp_socket.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ppapi/cpp/private/flash_tcp_socket.cc') diff --git a/ppapi/cpp/private/flash_tcp_socket.cc b/ppapi/cpp/private/flash_tcp_socket.cc index 0dec218..18c865f 100644 --- a/ppapi/cpp/private/flash_tcp_socket.cc +++ b/ppapi/cpp/private/flash_tcp_socket.cc @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// TODO(yzshen): See the comment in corresponding .h file. - #include "ppapi/cpp/private/flash_tcp_socket.h" #include "ppapi/c/pp_bool.h" @@ -32,6 +30,11 @@ TCPSocket::TCPSocket(Instance* instance) { } } +// static +bool TCPSocket::IsAvailable() { + return has_interface(); +} + int32_t TCPSocket::Connect(const char* host, uint16_t port, const CompletionCallback& callback) { -- cgit v1.1