Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: content/test/webrtc_content_browsertest_base.h

Issue 131203005: Split WebRTC browser tests in getusermedia and peerconnection tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased again :) Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/webrtc_content_browsertest_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/webrtc_content_browsertest_base.h
diff --git a/content/test/webrtc_content_browsertest_base.h b/content/test/webrtc_content_browsertest_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..39959ca4a8b7c4c708248a582124740471713ccc
--- /dev/null
+++ b/content/test/webrtc_content_browsertest_base.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// 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 {
+ public:
+ virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
+ virtual void SetUp() 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/webrtc_content_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698