| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | |
| 8 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
| 9 #include "remoting/base/constants.h" | 9 #include "remoting/base/constants.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 // X11 headers must be #included after gtest.h, since the X11 headers define | 12 // X11 headers must be #included after gtest.h, since the X11 headers define |
| 13 // some macros that cause errors in gtest-type-util.h. | 13 // some macros that cause errors in gtest-type-util.h. |
| 14 #include <X11/Xlib.h> | 14 #include <X11/Xlib.h> |
| 15 #include "remoting/host/linux/x_server_clipboard.h" | 15 #include "remoting/host/linux/x_server_clipboard.h" |
| 16 | 16 |
| 17 namespace remoting { | 17 namespace remoting { |
| 18 | 18 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 client2_.SetClipboardData("Text3"); | 112 client2_.SetClipboardData("Text3"); |
| 113 PumpXEvents(); | 113 PumpXEvents(); |
| 114 EXPECT_EQ("Text3", client1_.clipboard_data()); | 114 EXPECT_EQ("Text3", client1_.clipboard_data()); |
| 115 | 115 |
| 116 client2_.SetClipboardData("Text4"); | 116 client2_.SetClipboardData("Text4"); |
| 117 PumpXEvents(); | 117 PumpXEvents(); |
| 118 EXPECT_EQ("Text4", client1_.clipboard_data()); | 118 EXPECT_EQ("Text4", client1_.clipboard_data()); |
| 119 } | 119 } |
| 120 | 120 |
| 121 } // namespace remoting | 121 } // namespace remoting |
| OLD | NEW |