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.
5 #include "content/test/content_browser_test.h"
11 // Contains stuff WebRTC browsertests have in common.
12 class WebRtcContentBrowserTest
: public ContentBrowserTest
{
14 virtual void SetUpCommandLine(CommandLine
* command_line
) OVERRIDE
;
15 virtual void SetUp() OVERRIDE
;
18 // Executes |javascript| and returns after it has been executed.
19 bool ExecuteJavascript(const std::string
& javascript
);
21 // Executes |javascript|. The script is required to use
22 // window.domAutomationController.send to send a string value back to here.
23 std::string
ExecuteJavascriptAndReturnResult(
24 const std::string
& javascript
);
26 // Waits for the page title to be set to |expected_title|.
27 void ExpectTitle(const std::string
& expected_title
) const;
29 // Generates javascript code for a getUserMedia call.
30 std::string
GenerateGetUserMediaCall(const char* function_name
,
36 int max_frame_rate
) const;
39 } // namespace content