
Copy the chromium pattern of taking Traits as template args to be able to write a testable implementation of ScopedTypeRef. Add unit tests for th current implementation. Bug: webrtc:7825 Change-Id: I26017952c042c8323b9c3841ec309e32d1c04a85 Reviewed-on: https://webrtc-review.googlesource.com/5621 Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20165}