video_encoder_verbatim_unittest.cc 1.0 KB

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2010 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "remoting/codec/video_encoder_verbatim.h"
  5. #include "remoting/codec/codec_test.h"
  6. #include "remoting/codec/video_decoder_verbatim.h"
  7. #include "testing/gtest/include/gtest/gtest.h"
  8. namespace remoting {
  9. TEST(VideoEncoderVerbatimTest, TestVideoEncoder) {
  10. std::unique_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
  11. TestVideoEncoder(encoder.get(), true);
  12. }
  13. TEST(VideoEncoderVerbatimTest, EncodeAndDecode) {
  14. std::unique_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
  15. std::unique_ptr<VideoDecoderVerbatim> decoder(new VideoDecoderVerbatim());
  16. TestVideoEncoderDecoder(encoder.get(), decoder.get(), true);
  17. }
  18. TEST(VideoEncoderVerbatimTest, EncodeUnchangedFrame) {
  19. std::unique_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
  20. TestVideoEncoderEmptyFrames(encoder.get(), 0);
  21. }
  22. } // namespace remoting