Home
last modified time | relevance | path

Searched refs:SyncSocket (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/base/
Dsync_socket_posix.cc35 size_t SendHelper(SyncSocket::Handle handle, in SendHelper()
40 DCHECK_NE(handle, SyncSocket::kInvalidHandle); in SendHelper()
47 bool CloseHandle(SyncSocket::Handle handle) { in CloseHandle()
48 if (handle != SyncSocket::kInvalidHandle && close(handle) < 0) { in CloseHandle()
58 const SyncSocket::Handle SyncSocket::kInvalidHandle = -1;
60 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {} in SyncSocket() function in base::SyncSocket
62 SyncSocket::~SyncSocket() { in ~SyncSocket()
67 bool SyncSocket::CreatePair(SyncSocket* socket_a, SyncSocket* socket_b) { in CreatePair()
104 SyncSocket::Handle SyncSocket::UnwrapHandle( in UnwrapHandle()
109 bool SyncSocket::PrepareTransitDescriptor(ProcessHandle peer_process_handle, in PrepareTransitDescriptor()
[all …]
Dsync_socket.h33 class BASE_EXPORT SyncSocket {
44 SyncSocket();
47 explicit SyncSocket(Handle handle) : handle_(handle) {} in SyncSocket() function
48 virtual ~SyncSocket();
53 static bool CreatePair(SyncSocket* socket_a, SyncSocket* socket_b);
103 DISALLOW_COPY_AND_ASSIGN(SyncSocket);
109 class BASE_EXPORT CancelableSyncSocket : public SyncSocket {
156 const SyncSocket::Handle SyncSocket::kInvalidHandle = INVALID_HANDLE_VALUE;
Dsync_socket_unittest.cc22 explicit HangingReceiveThread(SyncSocket* socket, bool with_timeout) in HangingReceiveThread()
59 SyncSocket* socket_;
71 void SendReceivePeek(SyncSocket* socket_a, SyncSocket* socket_b) { in SendReceivePeek()
108 ASSERT_TRUE(SyncSocket::CreatePair(&socket_a_, &socket_b_)); in SetUp()
112 SyncSocket socket_a_;
113 SyncSocket socket_b_;
121 SyncSocket socket_c(socket_a_.Release()); in TEST_F()
122 SyncSocket socket_d(socket_b_.Release()); in TEST_F()
/external/libchrome/ipc/
Dsync_socket_unittest.cc38 IPC_MESSAGE_CONTROL1(MsgClassSetHandle, base::SyncSocket::Handle)
82 void OnMsgClassSetHandle(const base::SyncSocket::Handle handle) { in OnMsgClassSetHandle()
93 void SetHandle(base::SyncSocket::Handle handle) { in SetHandle()
94 base::SyncSocket sync_socket(handle); in SetHandle()
126 void Init(base::SyncSocket* socket, IPC::Channel* chan) { in Init()
158 base::SyncSocket* socket_;
172 base::SyncSocket pair[2]; in TEST_F()
173 base::SyncSocket::CreatePair(&pair[0], &pair[1]); in TEST_F()
177 base::SyncSocket::Handle target_handle; in TEST_F()
207 static void BlockingRead(base::SyncSocket* socket, char* buf, in BlockingRead()