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

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

Issue 789273006: Make ContentSettingsObserver security checks work with OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool WaitForLoadStop(WebContents* web_contents); 81 bool WaitForLoadStop(WebContents* web_contents);
82 82
83 #if defined(USE_AURA) 83 #if defined(USE_AURA)
84 // If WebContent's view is currently being resized, this will wait for the ack 84 // If WebContent's view is currently being resized, this will wait for the ack
85 // from the renderer that the resize is complete and for the 85 // from the renderer that the resize is complete and for the
86 // WindowEventDispatcher to release the pointer moves. If there's no resize in 86 // WindowEventDispatcher to release the pointer moves. If there's no resize in
87 // progress, the method will return right away. 87 // progress, the method will return right away.
88 void WaitForResizeComplete(WebContents* web_contents); 88 void WaitForResizeComplete(WebContents* web_contents);
89 #endif // USE_AURA 89 #endif // USE_AURA
90 90
91 // Navigate a frame with ID |iframe_id| to |url|, blocking until the navigation
Charlie Reis 2014/12/12 18:02:45 Let's move this to the top of the file. Also, let
alexmos 2014/12/13 00:58:13 Done.
92 // finishes.
93 bool NavigateIframeToURL(WebContents* web_contents,
94 const GURL& url,
95 std::string iframe_id);
Charlie Reis 2014/12/12 18:02:45 Let's swap the last two arguments. (Worth the cle
alexmos 2014/12/13 00:58:13 Done.
96
91 // Causes the specified web_contents to crash. Blocks until it is crashed. 97 // Causes the specified web_contents to crash. Blocks until it is crashed.
92 void CrashTab(WebContents* web_contents); 98 void CrashTab(WebContents* web_contents);
93 99
94 // Simulates clicking at the center of the given tab asynchronously; modifiers 100 // Simulates clicking at the center of the given tab asynchronously; modifiers
95 // may contain bits from WebInputEvent::Modifiers. 101 // may contain bits from WebInputEvent::Modifiers.
96 void SimulateMouseClick(WebContents* web_contents, 102 void SimulateMouseClick(WebContents* web_contents,
97 int modifiers, 103 int modifiers,
98 blink::WebMouseEvent::Button button); 104 blink::WebMouseEvent::Button button);
99 105
100 // Simulates clicking at the point |point| of the given tab asynchronously; 106 // Simulates clicking at the point |point| of the given tab asynchronously;
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 NotificationRegistrar registrar_; 353 NotificationRegistrar registrar_;
348 std::queue<std::string> message_queue_; 354 std::queue<std::string> message_queue_;
349 scoped_refptr<MessageLoopRunner> message_loop_runner_; 355 scoped_refptr<MessageLoopRunner> message_loop_runner_;
350 356
351 DISALLOW_COPY_AND_ASSIGN(DOMMessageQueue); 357 DISALLOW_COPY_AND_ASSIGN(DOMMessageQueue);
352 }; 358 };
353 359
354 } // namespace content 360 } // namespace content
355 361
356 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 362 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698