| 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 "remoting/host/chromeos/clipboard_aura.h" | 5 #include "remoting/host/chromeos/clipboard_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "base/single_thread_task_runner.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/test/test_timeouts.h" | 15 #include "base/test/test_timeouts.h" |
| 15 #include "remoting/base/constants.h" | 16 #include "remoting/base/constants.h" |
| 16 #include "remoting/proto/event.pb.h" | 17 #include "remoting/proto/event.pb.h" |
| 17 #include "remoting/protocol/clipboard_stub.h" | 18 #include "remoting/protocol/clipboard_stub.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "ui/base/clipboard/clipboard.h" | 21 #include "ui/base/clipboard/clipboard.h" |
| 21 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 22 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 22 | 23 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 FROM_HERE, base::Bind(&ClipboardAuraTest_MonitorClipboardChanges_Test:: | 125 FROM_HERE, base::Bind(&ClipboardAuraTest_MonitorClipboardChanges_Test:: |
| 125 StopAndResetClipboard, | 126 StopAndResetClipboard, |
| 126 base::Unretained(this)), | 127 base::Unretained(this)), |
| 127 TestTimeouts::tiny_timeout()); | 128 TestTimeouts::tiny_timeout()); |
| 128 message_loop_.task_runner()->PostDelayedTask( | 129 message_loop_.task_runner()->PostDelayedTask( |
| 129 FROM_HERE, run_loop.QuitClosure(), TestTimeouts::tiny_timeout()); | 130 FROM_HERE, run_loop.QuitClosure(), TestTimeouts::tiny_timeout()); |
| 130 run_loop.Run(); | 131 run_loop.Run(); |
| 131 } | 132 } |
| 132 | 133 |
| 133 } // namespace remoting | 134 } // namespace remoting |
| OLD | NEW |