tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

video_frame_matchers.h (964B)


      1 /*
      2 *  Copyright (c) 2022 The WebRTC project authors. All Rights Reserved.
      3 *
      4 *  Use of this source code is governed by a BSD-style license
      5 *  that can be found in the LICENSE file in the root of the source
      6 *  tree. An additional intellectual property rights grant can be found
      7 *  in the file PATENTS.  All contributing project authors may
      8 *  be found in the AUTHORS file in the root of the source tree.
      9 */
     10 
     11 #ifndef API_VIDEO_TEST_VIDEO_FRAME_MATCHERS_H_
     12 #define API_VIDEO_TEST_VIDEO_FRAME_MATCHERS_H_
     13 
     14 #include "test/gmock.h"
     15 
     16 namespace webrtc::test::video_frame_matchers {
     17 
     18 MATCHER_P(Rotation, rotation, "") {
     19  return ::testing::Matches(::testing::Eq(rotation))(arg.rotation());
     20 }
     21 
     22 MATCHER_P(NtpTimestamp, ntp_ts, "") {
     23  return arg.ntp_time_ms() == ntp_ts.ms();
     24 }
     25 
     26 MATCHER_P(PacketInfos, m, "") {
     27  return ::testing::Matches(m)(arg.packet_infos());
     28 }
     29 
     30 }  // namespace webrtc::test::video_frame_matchers
     31 
     32 #endif  // API_VIDEO_TEST_VIDEO_FRAME_MATCHERS_H_