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

Side by Side Diff: content/browser/media/webrtc/webrtc_content_browsertest_base.h

Issue 2197143002: Revert of ImageCapture: content_browsertest WebRtcImageCaptureBrowserTest CreateAndGetCapabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MEDIA_WEBRTC_WEBRTC_CONTENT_BROWSERTEST_BASE_H_
6 #define CONTENT_BROWSER_MEDIA_WEBRTC_WEBRTC_CONTENT_BROWSERTEST_BASE_H_
7
8 #include "content/public/test/content_browser_test.h"
9
10 namespace base {
11 class CommandLine;
12 }
13
14 namespace content {
15
16 // Contains stuff WebRTC browsertests have in common.
17 class WebRtcContentBrowserTest: public ContentBrowserTest {
18 public:
19 void SetUpCommandLine(base::CommandLine* command_line) override;
20 void SetUp() override;
21 void TearDown() override;
22
23 protected:
24 // Helper function to append "--use-fake-ui-for-media-stream".
25 void AppendUseFakeUIForMediaStreamFlag();
26
27 // Executes |javascript|. The script is required to use
28 // window.domAutomationController.send to send a string value back to here.
29 std::string ExecuteJavascriptAndReturnResult(
30 const std::string& javascript);
31
32 // Waits for the javascript to return OK via the automation controller.
33 // If the javascript returns != OK or times out, we fail the test.
34 void ExecuteJavascriptAndWaitForOk(const std::string& javascript);
35
36 // Execute a typical javascript call after having started the webserver.
37 void MakeTypicalCall(const std::string& javascript,
38 const std::string& html_file);
39
40 // Generates javascript code for a getUserMedia call.
41 std::string GenerateGetUserMediaCall(const char* function_name,
42 int min_width,
43 int max_width,
44 int min_height,
45 int max_height,
46 int min_frame_rate,
47 int max_frame_rate) const;
48 };
49
50 } // namespace content
51
52 #endif // CONTENT_BROWSER_MEDIA_WEBRTC_WEBRTC_CONTENT_BROWSERTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698