Closed
Bug 1370601
Opened 8 years ago
Closed 8 years ago
Make it possible for offerer and answerer to switch roles in jsep_session_unittest.cpp
Categories
(Core :: WebRTC: Signaling, enhancement, P2)
Core
WebRTC: Signaling
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: dminor, Assigned: dminor)
Details
Attachments
(1 file)
This is part of Bug 1329028 that can be rebased and landed independently. Making it possible for the offerer and answerer to switch roles will improve test coverage.
Assignee | ||
Updated•8 years ago
|
Rank: 25
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8875850 -
Flags: review?(docfaraday)
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8875850 [details]
Bug 1370601 - Make it possible for offerer and answerer to switch roles in jsep_session_unittest.cpp;
https://reviewboard.mozilla.org/r/147252/#review151882
::: media/webrtc/signaling/gtest/jsep_session_unittest.cpp:5374
(Diff revision 1)
> + std::string actpass = "\r\na=setup:actpass";
> + size_t match = reoffer.find(actpass);
> + ASSERT_NE(match, std::string::npos);
> + reoffer.replace(match, actpass.length(), "\r\na=setup:active");
> +
> + SetRemoteOffer(reoffer, NO_CHECKS);
Let's add a comment here that we're expecting SetRemoteOffer to fail.
::: media/webrtc/signaling/gtest/jsep_session_unittest.cpp:5403
(Diff revision 1)
> + std::string actpass = "\r\na=setup:active";
> + size_t match = reanswer.find(actpass);
> + ASSERT_NE(match, std::string::npos);
> + reanswer.replace(match, actpass.length(), "\r\na=setup:passive");
> +
> + SetRemoteAnswer(reanswer, NO_CHECKS);
Same sort of thing here.
Attachment #8875850 -
Flags: review?(docfaraday) → review+
Comment hidden (mozreview-request) |
Pushed by dminor@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b51c4d61a69f
Make it possible for offerer and answerer to switch roles in jsep_session_unittest.cpp; r=bwc
Comment 5•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•