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

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

Issue 2972003002: RTCPeerConnection.ontrack event added. (Closed)
Patch Set: Le merge Created 3 years, 5 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 | « no previous file | chrome/browser/media/webrtc/webrtc_browsertest_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc/webrtc_browsertest_base.h
diff --git a/chrome/browser/media/webrtc/webrtc_browsertest_base.h b/chrome/browser/media/webrtc/webrtc_browsertest_base.h
index 5c16feff67f26d07d9283baca27ddc3a0e6387b8..3eb9e18a2dee04e79305ba8d1664ea369f42cf4e 100644
--- a/chrome/browser/media/webrtc/webrtc_browsertest_base.h
+++ b/chrome/browser/media/webrtc/webrtc_browsertest_base.h
@@ -55,6 +55,15 @@ class WebRtcTestBase : public InProcessBrowserTest {
INDIVIDUAL_STREAMS
};
+ struct TrackEvent {
+ explicit TrackEvent(const std::string& track_id);
+ TrackEvent(const TrackEvent&);
+ ~TrackEvent();
+
+ std::string track_id;
+ std::vector<std::string> stream_ids;
+ };
+
protected:
WebRtcTestBase();
~WebRtcTestBase() override;
@@ -222,6 +231,8 @@ class WebRtcTestBase : public InProcessBrowserTest {
bool HasReceiverWithTrack(content::WebContents* tab,
std::string track_id) const;
size_t GetNegotiationNeededCount(content::WebContents* tab) const;
+ void SetupOnTrackListener(content::WebContents* tab) const;
+ std::vector<TrackEvent> GetTrackEvents(content::WebContents* tab) const;
private:
void CloseInfoBarInTab(content::WebContents* tab_contents,
« 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