Lines Matching refs:MockRead
34 SOCKS5ClientSocket* BuildMockSocket(MockRead reads[],
76 MockRead reads[],
118 MockRead data_reads[] = {
119 MockRead(true, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength),
120 MockRead(true, kSOCKS5OkResponse, kSOCKS5OkResponseLength),
121 MockRead(true, payload_read.data(), payload_read.size()) };
188 MockRead data_reads[] = {
189 MockRead(false, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength),
190 MockRead(false, kSOCKS5OkResponse, kSOCKS5OkResponseLength)
214 MockRead data_reads[] = {MockRead()};
248 MockRead data_reads[] = {
249 MockRead(true, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength),
250 MockRead(true, kSOCKS5OkResponse, kSOCKS5OkResponseLength) };
278 MockRead data_reads[] = {
279 MockRead(true, partial1, arraysize(partial1)),
280 MockRead(true, partial2, arraysize(partial2)),
281 MockRead(true, kSOCKS5OkResponse, kSOCKS5OkResponseLength) };
309 MockRead data_reads[] = {
310 MockRead(true, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength),
311 MockRead(true, kSOCKS5OkResponse, kSOCKS5OkResponseLength) };
336 MockRead data_reads[] = {
337 MockRead(true, kSOCKS5GreetResponse, kSOCKS5GreetResponseLength),
338 MockRead(true, kSOCKS5OkResponse, kSplitPoint),
339 MockRead(true, kSOCKS5OkResponse + kSplitPoint,