/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "modules/desktop_capture/desktop_capturer_differ_wrapper.h" #include #include #include #include #include "modules/desktop_capture/desktop_geometry.h" #include "modules/desktop_capture/desktop_region.h" #include "modules/desktop_capture/differ_block.h" #include "modules/desktop_capture/fake_desktop_capturer.h" #include "modules/desktop_capture/mock_desktop_capturer_callback.h" #include "rtc_base/random.h" #include "rtc_base/time_utils.h" #include "system_wrappers/include/cpu_features_wrapper.h" #include "test/gtest.h" namespace webrtc { namespace { // Compares and asserts `frame`.updated_region() equals to `rects`. This // function does not care about the order of the `rects` and it does not expect // DesktopRegion to return an exact area for each rectangle in `rects`. template