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

Side by Side Diff: content/public/test/browser_test_utils.cc

Issue 2507223003: Tests for dragging between two frames (potentially cross-site from main frame). (Closed)
Patch Set: Added SuppressPassingStartDragFurther method + moved constant definitions. Created 4 years 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
« no previous file with comments | « chrome/test/data/drag_and_drop/page.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/public/test/browser_test_utils.h" 5 #include "content/public/test/browser_test_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <tuple> 8 #include <tuple>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 if (message_loop_runner_.get()) 1296 if (message_loop_runner_.get())
1297 message_loop_runner_->Quit(); 1297 message_loop_runner_->Quit();
1298 } 1298 }
1299 1299
1300 void DOMMessageQueue::RenderProcessGone(base::TerminationStatus status) { 1300 void DOMMessageQueue::RenderProcessGone(base::TerminationStatus status) {
1301 switch (status) { 1301 switch (status) {
1302 case base::TERMINATION_STATUS_NORMAL_TERMINATION: 1302 case base::TERMINATION_STATUS_NORMAL_TERMINATION:
1303 case base::TERMINATION_STATUS_STILL_RUNNING: 1303 case base::TERMINATION_STATUS_STILL_RUNNING:
1304 break; 1304 break;
1305 default: 1305 default:
1306 message_loop_runner_->Quit(); 1306 if (message_loop_runner_.get())
1307 message_loop_runner_->Quit();
1307 break; 1308 break;
1308 } 1309 }
1309 } 1310 }
1310 1311
1311 void DOMMessageQueue::ClearQueue() { 1312 void DOMMessageQueue::ClearQueue() {
1312 message_queue_ = std::queue<std::string>(); 1313 message_queue_ = std::queue<std::string>();
1313 } 1314 }
1314 1315
1315 bool DOMMessageQueue::WaitForMessage(std::string* message) { 1316 bool DOMMessageQueue::WaitForMessage(std::string* message) {
1316 DCHECK(message); 1317 DCHECK(message);
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
1767 1768
1768 std::string ascii_message = base::UTF16ToASCII(message); 1769 std::string ascii_message = base::UTF16ToASCII(message);
1769 if (base::MatchPattern(ascii_message, filter_)) { 1770 if (base::MatchPattern(ascii_message, filter_)) {
1770 message_ = ascii_message; 1771 message_ = ascii_message;
1771 message_loop_runner_->Quit(); 1772 message_loop_runner_->Quit();
1772 } 1773 }
1773 return false; 1774 return false;
1774 } 1775 }
1775 1776
1776 } // namespace content 1777 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/data/drag_and_drop/page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698