| 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "media/video/capture/screen/screen_capturer_fake.h" | 6 #include "media/video/capture/screen/screen_capturer_fake.h" |
| 7 #include "media/video/capture/screen/screen_capturer_mock_objects.h" | 7 #include "media/video/capture/screen/screen_capturer_mock_objects.h" |
| 8 #include "remoting/base/auto_thread_task_runner.h" | 8 #include "remoting/base/auto_thread_task_runner.h" |
| 9 #include "remoting/base/constants.h" | 9 #include "remoting/base/constants.h" |
| 10 #include "remoting/host/audio_capturer.h" | 10 #include "remoting/host/audio_capturer.h" |
| 11 #include "remoting/host/client_session.h" | 11 #include "remoting/host/client_session.h" |
| 12 #include "remoting/host/desktop_environment.h" | 12 #include "remoting/host/desktop_environment.h" |
| 13 #include "remoting/host/host_mock_objects.h" | 13 #include "remoting/host/host_mock_objects.h" |
| 14 #include "remoting/protocol/protocol_mock_objects.h" | 14 #include "remoting/protocol/protocol_mock_objects.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" |
| 16 | 17 |
| 17 namespace remoting { | 18 namespace remoting { |
| 18 | 19 |
| 19 using protocol::MockConnectionToClient; | 20 using protocol::MockConnectionToClient; |
| 20 using protocol::MockClientStub; | 21 using protocol::MockClientStub; |
| 21 using protocol::MockHostStub; | 22 using protocol::MockHostStub; |
| 22 using protocol::MockInputStub; | 23 using protocol::MockInputStub; |
| 23 using protocol::MockSession; | 24 using protocol::MockSession; |
| 24 using protocol::MockVideoStub; | 25 using protocol::MockVideoStub; |
| 25 using protocol::SessionConfig; | 26 using protocol::SessionConfig; |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 .After(connected) | 521 .After(connected) |
| 521 .WillOnce(DoAll( | 522 .WillOnce(DoAll( |
| 522 InvokeWithoutArgs(this, &ClientSessionTest::DisconnectClientSession), | 523 InvokeWithoutArgs(this, &ClientSessionTest::DisconnectClientSession), |
| 523 InvokeWithoutArgs(this, &ClientSessionTest::StopClientSession))); | 524 InvokeWithoutArgs(this, &ClientSessionTest::StopClientSession))); |
| 524 | 525 |
| 525 ConnectClientSession(); | 526 ConnectClientSession(); |
| 526 message_loop_.Run(); | 527 message_loop_.Run(); |
| 527 } | 528 } |
| 528 | 529 |
| 529 } // namespace remoting | 530 } // namespace remoting |
| OLD | NEW |