OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "remoting/base/mock_objects.h" | 6 #include "remoting/base/mock_objects.h" |
7 #include "remoting/protocol/fake_session.h" | 7 #include "remoting/protocol/fake_session.h" |
8 #include "remoting/protocol/connection_to_client.h" | 8 #include "remoting/protocol/connection_to_client.h" |
9 #include "remoting/protocol/mock_objects.h" | 9 #include "remoting/protocol/protocol_mock_objects.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 | 11 |
12 using ::testing::_; | 12 using ::testing::_; |
13 using ::testing::NotNull; | 13 using ::testing::NotNull; |
14 using ::testing::StrictMock; | 14 using ::testing::StrictMock; |
15 | 15 |
16 namespace remoting { | 16 namespace remoting { |
17 namespace protocol { | 17 namespace protocol { |
18 | 18 |
19 class ConnectionToClientTest : public testing::Test { | 19 class ConnectionToClientTest : public testing::Test { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 viewer_->Disconnect(); | 79 viewer_->Disconnect(); |
80 message_loop_.RunAllPending(); | 80 message_loop_.RunAllPending(); |
81 EXPECT_TRUE(session_->is_closed()); | 81 EXPECT_TRUE(session_->is_closed()); |
82 | 82 |
83 viewer_->Disconnect(); | 83 viewer_->Disconnect(); |
84 message_loop_.RunAllPending(); | 84 message_loop_.RunAllPending(); |
85 } | 85 } |
86 | 86 |
87 } // namespace protocol | 87 } // namespace protocol |
88 } // namespace remoting | 88 } // namespace remoting |
OLD | NEW |