| 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" | 7 #include "base/basictypes.h" |
| 8 #include "remoting/base/constants.h" | 8 #include "remoting/base/constants.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 break; | 89 break; |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 | 93 |
| 94 ClipboardTestClient client1_; | 94 ClipboardTestClient client1_; |
| 95 ClipboardTestClient client2_; | 95 ClipboardTestClient client2_; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 // http://crbug.com/163428 | 98 // http://crbug.com/163428 |
| 99 TEST_F(XServerClipboardTest, FLAKY_CopyPaste) { | 99 TEST_F(XServerClipboardTest, DISABLED_CopyPaste) { |
| 100 // Verify clipboard data can be transferred more than once. Then verify that | 100 // Verify clipboard data can be transferred more than once. Then verify that |
| 101 // the code continues to function in the opposite direction (so client1_ will | 101 // the code continues to function in the opposite direction (so client1_ will |
| 102 // send then receive, and client2_ will receive then send). | 102 // send then receive, and client2_ will receive then send). |
| 103 client1_.SetClipboardData("Text1"); | 103 client1_.SetClipboardData("Text1"); |
| 104 PumpXEvents(); | 104 PumpXEvents(); |
| 105 EXPECT_EQ("Text1", client2_.clipboard_data()); | 105 EXPECT_EQ("Text1", client2_.clipboard_data()); |
| 106 | 106 |
| 107 client1_.SetClipboardData("Text2"); | 107 client1_.SetClipboardData("Text2"); |
| 108 PumpXEvents(); | 108 PumpXEvents(); |
| 109 EXPECT_EQ("Text2", client2_.clipboard_data()); | 109 EXPECT_EQ("Text2", client2_.clipboard_data()); |
| 110 | 110 |
| 111 client2_.SetClipboardData("Text3"); | 111 client2_.SetClipboardData("Text3"); |
| 112 PumpXEvents(); | 112 PumpXEvents(); |
| 113 EXPECT_EQ("Text3", client1_.clipboard_data()); | 113 EXPECT_EQ("Text3", client1_.clipboard_data()); |
| 114 | 114 |
| 115 client2_.SetClipboardData("Text4"); | 115 client2_.SetClipboardData("Text4"); |
| 116 PumpXEvents(); | 116 PumpXEvents(); |
| 117 EXPECT_EQ("Text4", client1_.clipboard_data()); | 117 EXPECT_EQ("Text4", client1_.clipboard_data()); |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace remoting | 120 } // namespace remoting |
| OLD | NEW |