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

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

Issue 131203005: Split WebRTC browser tests in getusermedia and peerconnection tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
jam 2014/01/15 18:00:09 move this header and the cc file to content/test.
phoglund_chromium 2014/01/16 14:30:32 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/test/content_browser_test.h"
6
7 class CommandLine;
8
9 namespace content {
10
11 // Contains stuff WebRTC browsertests have in common.
12 class WebRtcContentBrowserTest: public ContentBrowserTest {
jam 2014/01/15 18:00:09 nit: space before colon
phoglund_chromium 2014/01/16 14:30:32 Done.
13 public:
14 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
15
16 protected:
17 // Executes |javascript| and returns after it has been executed.
18 bool ExecuteJavascript(const std::string& javascript);
19
20 // Executes |javascript|. The script is required to use
21 // window.domAutomationController.send to send a string value back to here.
22 std::string ExecuteJavascriptAndReturnResult(
23 const std::string& javascript);
24
25 // Waits for the page title to be set to |expected_title|.
26 void ExpectTitle(const std::string& expected_title) const;
27
28 // Generates javascript code for a getUserMedia call.
29 std::string GenerateGetUserMediaCall(const char* function_name,
30 int min_width,
31 int max_width,
32 int min_height,
33 int max_height,
34 int min_frame_rate,
35 int max_frame_rate) const;
36 };
37
38 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/webrtc_browsertest.cc ('k') | content/browser/media/webrtc_content_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698