#include "components/mirroring/service/video_capture_client.h"
#include "base/functional/bind.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/memory/unsafe_shared_memory_region.h"
#include "base/run_loop.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "components/mirroring/service/fake_video_capture_host.h"
#include "media/base/video_frame.h"
#include "media/base/video_frame_metadata.h"
#include "media/capture/mojom/video_capture_buffer.mojom.h"
#include "media/capture/mojom/video_capture_types.mojom.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
InvokeWithoutArgs;
_;
namespace mirroring {
namespace {
const media::VideoCaptureFeedback kFeedback(0.6, 30.0, 1000);
constexpr bool kNotPremapped = …;
media::mojom::VideoFrameInfoPtr GetVideoFrameInfo(const gfx::Size& size) { … }
}
class VideoCaptureClientTest : public ::testing::Test,
public ::testing::WithParamInterface<bool> { … };
TEST_P(VideoCaptureClientTest, Basic) { … }
INSTANTIATE_TEST_SUITE_P(…);
}