OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "jingle/glue/chrome_async_socket.h" | 5 #include "jingle/glue/chrome_async_socket.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 } | 404 } |
405 if (len_read == 0U) { | 405 if (len_read == 0U) { |
406 break; | 406 break; |
407 } | 407 } |
408 read.append(buf.get(), len_read); | 408 read.append(buf.get(), len_read); |
409 } | 409 } |
410 return read; | 410 return read; |
411 } | 411 } |
412 | 412 |
413 // ChromeAsyncSocket expects a message loop. | 413 // ChromeAsyncSocket expects a message loop. |
414 MessageLoop message_loop_; | 414 base::MessageLoop message_loop_; |
415 | 415 |
416 AsyncSocketDataProvider async_socket_data_provider_; | 416 AsyncSocketDataProvider async_socket_data_provider_; |
417 net::SSLSocketDataProvider ssl_socket_data_provider_; | 417 net::SSLSocketDataProvider ssl_socket_data_provider_; |
418 | 418 |
419 scoped_ptr<ChromeAsyncSocket> chrome_async_socket_; | 419 scoped_ptr<ChromeAsyncSocket> chrome_async_socket_; |
420 std::deque<SignalSocketState> signal_socket_states_; | 420 std::deque<SignalSocketState> signal_socket_states_; |
421 const talk_base::SocketAddress addr_; | 421 const talk_base::SocketAddress addr_; |
422 | 422 |
423 private: | 423 private: |
424 DISALLOW_COPY_AND_ASSIGN(ChromeAsyncSocketTest); | 424 DISALLOW_COPY_AND_ASSIGN(ChromeAsyncSocketTest); |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 message_loop_.RunUntilIdle(); | 1070 message_loop_.RunUntilIdle(); |
1071 | 1071 |
1072 ExpectNoSignal(); | 1072 ExpectNoSignal(); |
1073 | 1073 |
1074 DoSSLCloseOpenedNoError(); | 1074 DoSSLCloseOpenedNoError(); |
1075 } | 1075 } |
1076 | 1076 |
1077 } // namespace | 1077 } // namespace |
1078 | 1078 |
1079 } // namespace jingle_glue | 1079 } // namespace jingle_glue |
OLD | NEW |