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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
(...skipping 12 matching lines...) Expand all
23 // Typical constraints. 23 // Typical constraints.
24 static const char kAudioVideoCallConstraints[]; 24 static const char kAudioVideoCallConstraints[];
25 static const char kAudioOnlyCallConstraints[]; 25 static const char kAudioOnlyCallConstraints[];
26 static const char kVideoOnlyCallConstraints[]; 26 static const char kVideoOnlyCallConstraints[];
27 27
28 static const char kFailedWithPermissionDeniedError[]; 28 static const char kFailedWithPermissionDeniedError[];
29 29
30 WebRtcTestBase(); 30 WebRtcTestBase();
31 virtual ~WebRtcTestBase(); 31 virtual ~WebRtcTestBase();
32 32
33 // These all require that the loaded page fulfills the public interface in
34 // chrome/test/data/webrtc/message_handling.js.
33 void GetUserMediaAndAccept(content::WebContents* tab_contents) const; 35 void GetUserMediaAndAccept(content::WebContents* tab_contents) const;
34 void GetUserMediaWithSpecificConstraintsAndAccept( 36 void GetUserMediaWithSpecificConstraintsAndAccept(
35 content::WebContents* tab_contents, 37 content::WebContents* tab_contents,
36 const std::string& constraints) const; 38 const std::string& constraints) const;
37 void GetUserMediaAndDeny(content::WebContents* tab_contents); 39 void GetUserMediaAndDeny(content::WebContents* tab_contents);
38 void GetUserMediaWithSpecificConstraintsAndDeny( 40 void GetUserMediaWithSpecificConstraintsAndDeny(
39 content::WebContents* tab_contents, 41 content::WebContents* tab_contents,
40 const std::string& constraints) const; 42 const std::string& constraints) const;
41 void GetUserMediaAndDismiss(content::WebContents* tab_contents) const; 43 void GetUserMediaAndDismiss(content::WebContents* tab_contents) const;
42 void GetUserMedia(content::WebContents* tab_contents, 44 void GetUserMedia(content::WebContents* tab_contents,
43 const std::string& constraints) const; 45 const std::string& constraints) const;
44 46
47 // Convenience method which opens the page at url, calls GetUserMediaAndAccept
48 // and returns the new tab.
49 content::WebContents* OpenPageAndGetUserMediaInNewTab(const GURL& url) const;
50
51 // Opens the page at |url| where getUserMedia has been invoked through other
52 // means and accepts the user media request.
45 content::WebContents* OpenPageAndAcceptUserMedia(const GURL& url) const; 53 content::WebContents* OpenPageAndAcceptUserMedia(const GURL& url) const;
46 54
47 void ConnectToPeerConnectionServer(const std::string& peer_name, 55 void ConnectToPeerConnectionServer(const std::string& peer_name,
48 content::WebContents* tab_contents) const; 56 content::WebContents* tab_contents) const;
49 std::string ExecuteJavascript(const std::string& javascript, 57 std::string ExecuteJavascript(const std::string& javascript,
50 content::WebContents* tab_contents) const; 58 content::WebContents* tab_contents) const;
51 59
52 private: 60 private:
53 void CloseInfoBarInTab(content::WebContents* tab_contents, 61 void CloseInfoBarInTab(content::WebContents* tab_contents,
54 MediaStreamInfoBarDelegate* infobar) const; 62 MediaStreamInfoBarDelegate* infobar) const;
55 MediaStreamInfoBarDelegate* GetUserMediaAndWaitForInfoBar( 63 MediaStreamInfoBarDelegate* GetUserMediaAndWaitForInfoBar(
56 content::WebContents* tab_contents, 64 content::WebContents* tab_contents,
57 const std::string& constraints) const; 65 const std::string& constraints) const;
58 66
59 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); 67 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase);
60 }; 68 };
61 69
62 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ 70 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698