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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "net/socket/socket.h" | 14 #include "net/socket/socket.h" |
15 #include "remoting/protocol/fake_session.h" | 15 #include "remoting/protocol/fake_session.h" |
16 #include "remoting/protocol/message_reader.h" | 16 #include "remoting/protocol/message_reader.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | |
19 #include "third_party/libjingle/source/talk/base/byteorder.h" | 19 #include "third_party/libjingle/source/talk/base/byteorder.h" |
20 | 20 |
21 using testing::_; | 21 using testing::_; |
22 using testing::DoAll; | 22 using testing::DoAll; |
23 using testing::Mock; | 23 using testing::Mock; |
24 using testing::SaveArg; | 24 using testing::SaveArg; |
25 | 25 |
26 namespace remoting { | 26 namespace remoting { |
27 namespace protocol { | 27 namespace protocol { |
28 | 28 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 EXPECT_CALL(callback_, OnMessage(_)) | 317 EXPECT_CALL(callback_, OnMessage(_)) |
318 .Times(1) | 318 .Times(1) |
319 .WillOnce(Invoke(this, &MessageReaderTest::DeleteReader)); | 319 .WillOnce(Invoke(this, &MessageReaderTest::DeleteReader)); |
320 | 320 |
321 InitReader(); | 321 InitReader(); |
322 message_loop_.RunUntilIdle(); | 322 message_loop_.RunUntilIdle(); |
323 } | 323 } |
324 | 324 |
325 } // namespace protocol | 325 } // namespace protocol |
326 } // namespace remoting | 326 } // namespace remoting |
OLD | NEW |