Chromium Code Reviews| Index: content/browser/media/webrtc_content_browsertest_base.h |
| diff --git a/content/browser/media/webrtc_content_browsertest_base.h b/content/browser/media/webrtc_content_browsertest_base.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d6757602bfc4d0bd47413a2ef707961597735d6f |
| --- /dev/null |
| +++ b/content/browser/media/webrtc_content_browsertest_base.h |
| @@ -0,0 +1,38 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/test/content_browser_test.h" |
| + |
| +class CommandLine; |
| + |
| +namespace content { |
| + |
| +// Contains stuff WebRTC browsertests have in common. |
| +class WebRtcContentBrowserTest: public ContentBrowserTest { |
|
jam
2014/01/15 18:00:09
nit: space before colon
phoglund_chromium
2014/01/16 14:30:32
Done.
|
| + public: |
| + virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
| + |
| + protected: |
| + // Executes |javascript| and returns after it has been executed. |
| + bool ExecuteJavascript(const std::string& javascript); |
| + |
| + // Executes |javascript|. The script is required to use |
| + // window.domAutomationController.send to send a string value back to here. |
| + std::string ExecuteJavascriptAndReturnResult( |
| + const std::string& javascript); |
| + |
| + // Waits for the page title to be set to |expected_title|. |
| + void ExpectTitle(const std::string& expected_title) const; |
| + |
| + // Generates javascript code for a getUserMedia call. |
| + std::string GenerateGetUserMediaCall(const char* function_name, |
| + int min_width, |
| + int max_width, |
| + int min_height, |
| + int max_height, |
| + int min_frame_rate, |
| + int max_frame_rate) const; |
| +}; |
| + |
| +} // namespace content |