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

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: Rebase 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 459064b14160d9f931ee7d705bd7b4f0783f8a70..ed22edde7d3617446d71ed167c66ddea79467135 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,
« no previous file with comments | « chrome/browser/media/chrome_webrtc_video_quality_browsertest.cc ('k') | chrome/browser/media/webrtc_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698