DescriptionRewrite PeerConnection integration tests using better testing practices.
Also renames "peerconnection_unittests" to "peerconnection_integrationtests",
and moves the ICE URL parsing code to separate files.
The main problem previously was that the test assertions
occurred in various places in the main test class, and this shared test
code was overly complex and stateful. As a result, it was difficult to
tell what a test even does, let alone what assertions it's meant to be
making. And writing a new test that does what you want can be a
frustrating ordeal.
The new code still uses helper methods, but they have intuitive names
and a smaller role; all of the important parts of the test's logic are
in the test case itself.
We're planning on merging PeerConnection and WebRtcSession at some point
soon, so it seemed valuable to do this, so that the WebRtcSession tests
can be rewritten as PeerConnection tests using better patterns.
BUG=None
Review-Url: https://codereview.webrtc.org/2738353003
Cr-Commit-Position: refs/heads/master@{#17458}
Committed: https://chromium.googlesource.com/external/webrtc/+/1dcb16409a3e82518ef852ec5614f87dff04f248
Patch Set 1 #Patch Set 2 : Fix race between ICE and SDP messages. 33/50 tests passing. #Patch Set 3 : Fixing a few tests; 39/50 passing. #Patch Set 4 : Fixed remaining tests. Now just need to address TODOs and possible gaps in coverage. #Patch Set 5 : Addressing TODO about ICE renomination test. #Patch Set 6 : Move ICE server parsing code and tests to separate files #Patch Set 7 : Rename peerconnection_unittest to peerconnection_integrationtest. #Patch Set 8 : Add the missing tests for CreateOffer/CreateAnswer with constraints. #
Total comments: 2
Patch Set 9 : Cleaning up some minor things, moving tests around. #Patch Set 10 : Minor improvements in various places. #Patch Set 11 : More minor cleanup; just comments and "sanity check" code at this point. #Patch Set 12 : Merge with master. #
Total comments: 30
Patch Set 13 : Address some of pthatcher's comments #Patch Set 14 : Merge with master #Patch Set 15 : Fixing issues caught by trybots. #Messages
Total messages: 31 (20 generated)
|