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

Unified Diff: chrome/browser/media/webrtc_browsertest_base.h

Issue 99333010: Working around the page load problem on Linux, re-enable tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
Index: chrome/browser/media/webrtc_browsertest_base.h
diff --git a/chrome/browser/media/webrtc_browsertest_base.h b/chrome/browser/media/webrtc_browsertest_base.h
index b1b546ba31258efa2597f48f8f26a419b5383f71..fc7539e24c497a18db6a6b0fb06748df20abb6ab 100644
--- a/chrome/browser/media/webrtc_browsertest_base.h
+++ b/chrome/browser/media/webrtc_browsertest_base.h
@@ -30,6 +30,8 @@ class WebRtcTestBase : public InProcessBrowserTest {
WebRtcTestBase();
virtual ~WebRtcTestBase();
+ // These all require that the loaded page fulfills the public interface in
+ // chrome/test/data/webrtc/message_handling.js.
void GetUserMediaAndAccept(content::WebContents* tab_contents) const;
void GetUserMediaWithSpecificConstraintsAndAccept(
content::WebContents* tab_contents,
@@ -42,6 +44,12 @@ class WebRtcTestBase : public InProcessBrowserTest {
void GetUserMedia(content::WebContents* tab_contents,
const std::string& constraints) const;
+ // Convenience method which opens the page at url, calls GetUserMediaAndAccept
+ // and returns the new tab.
+ content::WebContents* OpenPageAndGetUserMediaInNewTab(const GURL& url) const;
+
+ // Opens the page at |url| where getUserMedia has been invoked through other
+ // means and accepts the user media request.
content::WebContents* OpenPageAndAcceptUserMedia(const GURL& url) const;
void ConnectToPeerConnectionServer(const std::string& peer_name,

Powered by Google App Engine
This is Rietveld 408576698