| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/test/test_video_renderer.h" | 5 #include "remoting/test/test_video_renderer.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
| 17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 18 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
| 19 #include "remoting/codec/video_encoder.h" | 19 #include "remoting/codec/video_encoder.h" |
| 20 #include "remoting/codec/video_encoder_verbatim.h" | 20 #include "remoting/codec/video_encoder_verbatim.h" |
| 21 #include "remoting/codec/video_encoder_vpx.h" | 21 #include "remoting/codec/video_encoder_vpx.h" |
| 22 #include "remoting/proto/video.pb.h" | 22 #include "remoting/proto/video.pb.h" |
| 23 #include "remoting/test/rgb_value.h" | 23 #include "remoting/test/rgb_value.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 25 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 26 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" | 26 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" |
| 27 | 27 |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 TEST_F(TestVideoRendererTest, VerifyImagePatternNotMatchForVERBATIM) { | 507 TEST_F(TestVideoRendererTest, VerifyImagePatternNotMatchForVERBATIM) { |
| 508 encoder_.reset(new VideoEncoderVerbatim()); | 508 encoder_.reset(new VideoEncoderVerbatim()); |
| 509 test_video_renderer_->SetCodecForDecoding( | 509 test_video_renderer_->SetCodecForDecoding( |
| 510 protocol::ChannelConfig::Codec::CODEC_VERBATIM); | 510 protocol::ChannelConfig::Codec::CODEC_VERBATIM); |
| 511 TestImagePatternMatch(kDefaultScreenWidthPx, kDefaultScreenHeightPx, | 511 TestImagePatternMatch(kDefaultScreenWidthPx, kDefaultScreenHeightPx, |
| 512 kDefaultExpectedRect, false); | 512 kDefaultExpectedRect, false); |
| 513 } | 513 } |
| 514 | 514 |
| 515 } // namespace test | 515 } // namespace test |
| 516 } // namespace remoting | 516 } // namespace remoting |
| OLD | NEW |