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

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

Issue 2347473004: Revert of Removed duplicated JS hasVideoInputDeviceOnSystem() test helper (Closed)
Patch Set: Created 4 years, 3 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
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // or the keyboard layout. 159 // or the keyboard layout.
160 void SimulateKeyPress(WebContents* web_contents, 160 void SimulateKeyPress(WebContents* web_contents,
161 ui::DomKey key, 161 ui::DomKey key,
162 ui::DomCode code, 162 ui::DomCode code,
163 ui::KeyboardCode key_code, 163 ui::KeyboardCode key_code,
164 bool control, 164 bool control,
165 bool shift, 165 bool shift,
166 bool alt, 166 bool alt,
167 bool command); 167 bool command);
168 168
169 // Method to check what devices we have on the system.
170 bool IsWebcamAvailableOnSystem(WebContents* web_contents);
171
172 // Allow ExecuteScript* methods to target either a WebContents or a 169 // Allow ExecuteScript* methods to target either a WebContents or a
173 // RenderFrameHost. Targetting a WebContents means executing the script in the 170 // RenderFrameHost. Targetting a WebContents means executing the script in the
174 // RenderFrameHost returned by WebContents::GetMainFrame(), which is the main 171 // RenderFrameHost returned by WebContents::GetMainFrame(), which is the main
175 // frame. Pass a specific RenderFrameHost to target it. Embedders may declare 172 // frame. Pass a specific RenderFrameHost to target it. Embedders may declare
176 // additional ConvertToRenderFrameHost functions for convenience. 173 // additional ConvertToRenderFrameHost functions for convenience.
177 class ToRenderFrameHost { 174 class ToRenderFrameHost {
178 public: 175 public:
179 template <typename T> 176 template <typename T>
180 ToRenderFrameHost(T* frame_convertible_value) 177 ToRenderFrameHost(T* frame_convertible_value)
181 : render_frame_host_(ConvertToRenderFrameHost(frame_convertible_value)) {} 178 : render_frame_host_(ConvertToRenderFrameHost(frame_convertible_value)) {}
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 scoped_refptr<MessageLoopRunner> did_finish_loop_runner_; 640 scoped_refptr<MessageLoopRunner> did_finish_loop_runner_;
644 641
645 base::WeakPtrFactory<TestNavigationManager> weak_factory_; 642 base::WeakPtrFactory<TestNavigationManager> weak_factory_;
646 643
647 DISALLOW_COPY_AND_ASSIGN(TestNavigationManager); 644 DISALLOW_COPY_AND_ASSIGN(TestNavigationManager);
648 }; 645 };
649 646
650 } // namespace content 647 } // namespace content
651 648
652 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 649 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « content/browser/webrtc/webrtc_webcam_browsertest.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698