| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> |
| 6 |
| 5 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 6 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 7 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 11 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 12 #include "base/timer/mock_timer.h" | 14 #include "base/timer/mock_timer.h" |
| 13 #include "base/values.h" | 15 #include "base/values.h" |
| 14 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 net::TestCompletionCallback connect_callback; | 225 net::TestCompletionCallback connect_callback; |
| 224 int rv = client_socket.Connect(connect_callback.callback()); | 226 int rv = client_socket.Connect(connect_callback.callback()); |
| 225 ASSERT_EQ(net::OK, connect_callback.GetResult(rv)); | 227 ASSERT_EQ(net::OK, connect_callback.GetResult(rv)); |
| 226 | 228 |
| 227 std::string error_json = "{\"type\":\"error\",\"connectionId\":1}"; | 229 std::string error_json = "{\"type\":\"error\",\"connectionId\":1}"; |
| 228 auth_handler_->DeliverClientMessage(error_json); | 230 auth_handler_->DeliverClientMessage(error_json); |
| 229 ASSERT_EQ(0u, auth_handler_posix_->GetActiveSocketsMapSizeForTest()); | 231 ASSERT_EQ(0u, auth_handler_posix_->GetActiveSocketsMapSizeForTest()); |
| 230 } | 232 } |
| 231 | 233 |
| 232 } // namespace remoting | 234 } // namespace remoting |
| OLD | NEW |