Cast: Skip receiver log messages with time delta that can't be encoded.
[chromium-blink-merge.git] / content / test / webrtc_content_browsertest_base.h
blob7bc74a062f0af8860e1a4bc874da997a881cb16b
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"
7 class CommandLine;
9 namespace content {
11 // Contains stuff WebRTC browsertests have in common.
12 class WebRtcContentBrowserTest: public ContentBrowserTest {
13 public:
14 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
15 virtual void SetUp() OVERRIDE;
17 protected:
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,
31 int min_width,
32 int max_width,
33 int min_height,
34 int max_height,
35 int min_frame_rate,
36 int max_frame_rate) const;
39 } // namespace content