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/public/test/content_browser_test.h"
13 // Contains stuff WebRTC browsertests have in common.
14 class WebRtcContentBrowserTest
: public ContentBrowserTest
{
16 virtual void SetUpCommandLine(base::CommandLine
* command_line
) OVERRIDE
;
17 virtual void SetUp() OVERRIDE
;
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
);
25 // Waits for the javascript to return OK via the automation controller.
26 // If the javascript returns != OK or times out, we fail the test.
27 void ExecuteJavascriptAndWaitForOk(const std::string
& javascript
);
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