Put decoder error log MATCHER in unnamed namespace
Put MATCHER(ContainsDecoderErrorLog, "") in the unnamed namespace. aom_video_decoder_unittest.cc, dav1d_video_decoder_unittest.cc, and gav1_video_decoder_unittest.cc all have a MATCHER class with this name. Putting them in the unnamed namespace avoids name conflicts. Strangely, the linker did not warn about duplicate symbols. Include <memory> and <utility> in aom_video_decoder_unittest.cc and gav1_video_decoder_unittest.cc. Use the correct base::Bind variants (Repeating or Once) for the OutputCB and DecodeCB callbacks. $ gn args out/Default # In the editor, add the following lines: # enable_libgav1_decoder = true # enable_libaom_decoder = true $ autoninja -C out/Default media_unittests $ out/Default/media_unittests Tested: Change-Id: I535ba5847717b736074bf7a29ffae1e897fd0acb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081243 Commit-Queue: Wan-Teh Chang <wtc@google.com> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#746121}
Showing
Please register or sign in to comment