chromium/remoting/client/software_video_renderer_unittest.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "remoting/client/software_video_renderer.h"

#include <stdint.h>

#include <memory>
#include <utility>
#include <vector>

#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "remoting/client/client_context.h"
#include "remoting/codec/video_encoder_verbatim.h"
#include "remoting/proto/video.pb.h"
#include "remoting/protocol/frame_consumer.h"
#include "remoting/protocol/session_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"

DesktopFrame;

namespace remoting {

namespace {

const int kFrameWidth =;
const int kFrameHeight =;

class TestFrameConsumer : public protocol::FrameConsumer {};

std::unique_ptr<DesktopFrame> CreateTestFrame(int index) {}

// Returns true when frames a and b are equivalent.
bool CompareFrames(const DesktopFrame& a, const DesktopFrame& b) {}

// Helper to set value at |out| to 1.
void SetTrue(int* out) {}

}  // namespace

class SoftwareVideoRendererTest : public ::testing::Test {};

TEST_F(SoftwareVideoRendererTest, DecodeFrame) {}

}  // namespace remoting