Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Side by Side Diff: remoting/host/linux/x_server_clipboard_unittest.cc

Issue 11664013: GTTF: No more FLAKY_ . (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« chrome/common/time_format_unittest.cc ('K') | « net/url_request/url_request_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698