OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/macros.h" |
7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
8 #include "remoting/protocol/fake_connection_to_host.h" | 9 #include "remoting/protocol/fake_connection_to_host.h" |
9 #include "remoting/signaling/fake_signal_strategy.h" | 10 #include "remoting/signaling/fake_signal_strategy.h" |
10 #include "remoting/test/connection_setup_info.h" | 11 #include "remoting/test/connection_setup_info.h" |
11 #include "remoting/test/test_chromoting_client.h" | 12 #include "remoting/test/test_chromoting_client.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 namespace remoting { | 15 namespace remoting { |
15 namespace test { | 16 namespace test { |
16 | 17 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // Close the connection via the TestChromotingClient and verify the error | 195 // Close the connection via the TestChromotingClient and verify the error |
195 // state is persisted. | 196 // state is persisted. |
196 test_chromoting_client_->EndConnection(); | 197 test_chromoting_client_->EndConnection(); |
197 EXPECT_EQ(protocol::ConnectionToHost::State::FAILED, connection_state_); | 198 EXPECT_EQ(protocol::ConnectionToHost::State::FAILED, connection_state_); |
198 EXPECT_EQ(protocol::ErrorCode::UNKNOWN_ERROR, error_code_); | 199 EXPECT_EQ(protocol::ErrorCode::UNKNOWN_ERROR, error_code_); |
199 EXPECT_FALSE(is_connected_to_host_); | 200 EXPECT_FALSE(is_connected_to_host_); |
200 } | 201 } |
201 | 202 |
202 } // namespace test | 203 } // namespace test |
203 } // namespace remoting | 204 } // namespace remoting |
OLD | NEW |