Infobar material design refresh: bg color
[chromium-blink-merge.git] / content / test / webrtc_content_browsertest_base.h
blobb81ba52792b0f9a46b5a09584b14dbc7cedf1a1e
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"
7 namespace base {
8 class CommandLine;
11 namespace content {
13 // Contains stuff WebRTC browsertests have in common.
14 class WebRtcContentBrowserTest: public ContentBrowserTest {
15 public:
16 void SetUpCommandLine(base::CommandLine* command_line) override;
17 void SetUp() override;
18 void TearDown() override;
20 protected:
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 javascript to return OK via the automation controller.
27 // If the javascript returns != OK or times out, we fail the test.
28 void ExecuteJavascriptAndWaitForOk(const std::string& javascript);
30 // Generates javascript code for a getUserMedia call.
31 std::string GenerateGetUserMediaCall(const char* function_name,
32 int min_width,
33 int max_width,
34 int min_height,
35 int max_height,
36 int min_frame_rate,
37 int max_frame_rate) const;
39 bool OnWinXp() const;
42 } // namespace content