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

Side by Side Diff: chrome/browser/media/webrtc/webrtc_browsertest_base.h

Issue 2759953003: Interface RTCRtpReceiver and RTCPeerConnection.getReceivers() added. (Closed)
Patch Set: DISALLOW_COPY_AND_ASSIGN Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/media/webrtc/webrtc_browsertest_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WEBRTC_BROWSERTEST_BASE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/optional.h"
13 #include "chrome/browser/media/webrtc/test_stats_dictionary.h" 14 #include "chrome/browser/media/webrtc/test_stats_dictionary.h"
14 #include "chrome/test/base/in_process_browser_test.h" 15 #include "chrome/test/base/in_process_browser_test.h"
15 16
16 namespace infobars { 17 namespace infobars {
17 class InfoBar; 18 class InfoBar;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 class WebContents; 22 class WebContents;
22 } 23 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 180
180 // Change the default audio/video codec in the offer SDP. 181 // Change the default audio/video codec in the offer SDP.
181 void SetDefaultAudioCodec(content::WebContents* tab, 182 void SetDefaultAudioCodec(content::WebContents* tab,
182 const std::string& audio_codec) const; 183 const std::string& audio_codec) const;
183 void SetDefaultVideoCodec(content::WebContents* tab, 184 void SetDefaultVideoCodec(content::WebContents* tab,
184 const std::string& video_codec) const; 185 const std::string& video_codec) const;
185 186
186 // Add 'usedtx=1' to the offer SDP. 187 // Add 'usedtx=1' to the offer SDP.
187 void EnableOpusDtx(content::WebContents* tab) const; 188 void EnableOpusDtx(content::WebContents* tab) const;
188 189
190 void CreateAndAddStreams(content::WebContents* tab, size_t count) const;
191 void VerifyRtpReceivers(content::WebContents* tab,
192 base::Optional<size_t> expected_num_tracks =
193 base::Optional<size_t>()) const;
194
189 private: 195 private:
190 void CloseInfoBarInTab(content::WebContents* tab_contents, 196 void CloseInfoBarInTab(content::WebContents* tab_contents,
191 infobars::InfoBar* infobar) const; 197 infobars::InfoBar* infobar) const;
192 198
193 std::string CreateLocalOffer(content::WebContents* from_tab) const; 199 std::string CreateLocalOffer(content::WebContents* from_tab) const;
194 std::string CreateAnswer(std::string local_offer, 200 std::string CreateAnswer(std::string local_offer,
195 content::WebContents* to_tab) const; 201 content::WebContents* to_tab) const;
196 void ReceiveAnswer(const std::string& answer, 202 void ReceiveAnswer(const std::string& answer,
197 content::WebContents* from_tab) const; 203 content::WebContents* from_tab) const;
198 void GatherAndSendIceCandidates(content::WebContents* from_tab, 204 void GatherAndSendIceCandidates(content::WebContents* from_tab,
199 content::WebContents* to_tab) const; 205 content::WebContents* to_tab) const;
200 206
201 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( 207 infobars::InfoBar* GetUserMediaAndWaitForInfoBar(
202 content::WebContents* tab_contents, 208 content::WebContents* tab_contents,
203 const std::string& constraints) const; 209 const std::string& constraints) const;
204 210
205 bool detect_errors_in_javascript_; 211 bool detect_errors_in_javascript_;
206 212
207 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); 213 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase);
208 }; 214 };
209 215
210 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_ 216 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/webrtc/webrtc_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698