Reduce code repetition in RtcpDemuxerTest.

Converts RtcpDemuxerTest to use a test fixture which creates the
RtcpDemuxer under test and wraps sink adding functions to
automatically remove added sinks at the end of the test case.

Also adds domain-specific expectation macros to improve readability
of test cases.

Bug: None
Change-Id: I2416ce67c4fc8edc9ecc2cc98d191562c3bf81e4
Reviewed-on: https://chromium-review.googlesource.com/601049
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Elad Alon <eladalon@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19417}
1 file changed
tree: ff00e2af4dc06d63ad3f5b0236f28bbd07007b3a
  1. .clang-format
  2. .git-blame-ignore-revs
  3. .gitignore
  4. .gn
  5. AUTHORS
  6. BUILD.gn
  7. CODE_OF_CONDUCT.md
  8. DEPS
  9. LICENSE
  10. LICENSE_THIRD_PARTY
  11. OWNERS
  12. PATENTS
  13. PRESUBMIT.py
  14. README.md
  15. WATCHLISTS
  16. build_overrides/
  17. codereview.settings
  18. data/
  19. infra/
  20. license_template.txt
  21. pylintrc
  22. resources/
  23. tools_webrtc/
  24. webrtc/
README.md

WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.

Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.

The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.

Development

See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.

More info