| 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/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "remoting/base/auto_thread_task_runner.h" | 9 #include "remoting/base/auto_thread_task_runner.h" |
| 10 #include "remoting/host/client_session_control.h" | 10 #include "remoting/host/client_session_control.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 const base::MessageLoop::Type kDesiredMessageLoopType = | 29 const base::MessageLoop::Type kDesiredMessageLoopType = |
| 30 base::MessageLoop::TYPE_IO; | 30 base::MessageLoop::TYPE_IO; |
| 31 #endif // !defined(OS_WIN) | 31 #endif // !defined(OS_WIN) |
| 32 | 32 |
| 33 } // namespace | 33 } // namespace |
| 34 | 34 |
| 35 class LocalInputMonitorTest : public testing::Test { | 35 class LocalInputMonitorTest : public testing::Test { |
| 36 public: | 36 public: |
| 37 LocalInputMonitorTest(); | 37 LocalInputMonitorTest(); |
| 38 | 38 |
| 39 virtual void SetUp() override; | 39 void SetUp() override; |
| 40 | 40 |
| 41 base::MessageLoop message_loop_; | 41 base::MessageLoop message_loop_; |
| 42 base::RunLoop run_loop_; | 42 base::RunLoop run_loop_; |
| 43 scoped_refptr<AutoThreadTaskRunner> task_runner_; | 43 scoped_refptr<AutoThreadTaskRunner> task_runner_; |
| 44 | 44 |
| 45 std::string client_jid_; | 45 std::string client_jid_; |
| 46 MockClientSessionControl client_session_control_; | 46 MockClientSessionControl client_session_control_; |
| 47 base::WeakPtrFactory<ClientSessionControl> client_session_control_factory_; | 47 base::WeakPtrFactory<ClientSessionControl> client_session_control_factory_; |
| 48 }; | 48 }; |
| 49 | 49 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 80 task_runner_, | 80 task_runner_, |
| 81 task_runner_, | 81 task_runner_, |
| 82 client_session_control_factory_.GetWeakPtr()); | 82 client_session_control_factory_.GetWeakPtr()); |
| 83 task_runner_ = NULL; | 83 task_runner_ = NULL; |
| 84 } | 84 } |
| 85 | 85 |
| 86 run_loop_.Run(); | 86 run_loop_.Run(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace remoting | 89 } // namespace remoting |
| OLD | NEW |