OLD | NEW |
---|---|
(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 | |
OLD | NEW |