tor-browser

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

mock_frame_transformer.h (1459B)


      1 /*
      2 *  Copyright (c) 2020 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_TEST_MOCK_FRAME_TRANSFORMER_H_
     12 #define API_TEST_MOCK_FRAME_TRANSFORMER_H_
     13 
     14 #include <cstdint>
     15 #include <memory>
     16 
     17 #include "api/frame_transformer_interface.h"
     18 #include "api/scoped_refptr.h"
     19 #include "test/gmock.h"
     20 
     21 namespace webrtc {
     22 
     23 class MockFrameTransformer : public FrameTransformerInterface {
     24 public:
     25  MOCK_METHOD(void,
     26              Transform,
     27              (std::unique_ptr<TransformableFrameInterface>),
     28              (override));
     29  MOCK_METHOD(void,
     30              RegisterTransformedFrameCallback,
     31              (scoped_refptr<TransformedFrameCallback>),
     32              (override));
     33  MOCK_METHOD(void,
     34              RegisterTransformedFrameSinkCallback,
     35              (scoped_refptr<TransformedFrameCallback>, uint32_t),
     36              (override));
     37  MOCK_METHOD(void, UnregisterTransformedFrameCallback, (), (override));
     38  MOCK_METHOD(void,
     39              UnregisterTransformedFrameSinkCallback,
     40              (uint32_t),
     41              (override));
     42 };
     43 
     44 }  // namespace webrtc
     45 
     46 #endif  // API_TEST_MOCK_FRAME_TRANSFORMER_H_