chromium/remoting/client/display/gl_renderer_unittest.cc

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

#include "remoting/client/display/gl_renderer.h"

#include <memory>

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "remoting/client/display/fake_canvas.h"
#include "remoting/client/display/gl_renderer_delegate.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"

namespace remoting {

class FakeGlRendererDelegate : public GlRendererDelegate {};

class FakeDrawable : public Drawable {};

class GlRendererTest : public testing::Test {};

void GlRendererTest::SetUp() {}

void GlRendererTest::RequestRender() {}

int GlRendererTest::GetDrawablesCount() {}

std::vector<base::WeakPtr<Drawable>> GlRendererTest::GetDrawables() {}

void GlRendererTest::SetDesktopFrameWithSize(const webrtc::DesktopSize& size) {}

void GlRendererTest::PostSetDesktopFrameTasks(const webrtc::DesktopSize& size,
                                              int count) {}

void GlRendererTest::OnDesktopFrameProcessed() {}

void GlRendererTest::RunTasksInCurrentQueue() {}

void GlRendererTest::RunUntilRendered() {}

TEST_F(GlRendererTest, TestDelegateCanRenderFrame) {}

TEST_F(GlRendererTest, TestRequestRenderOnlyScheduleOnce) {}

TEST_F(GlRendererTest, TestDelegateOnSizeChanged) {}

TEST_F(GlRendererTest, TestOnFrameReceivedDoneCallbacks) {}

// TODO(yuweih): Add tests to validate the rendered output.

TEST_F(GlRendererTest, TestAddDrawable) {}

TEST_F(GlRendererTest, TestAddDrawableDefaultOrder) {}

TEST_F(GlRendererTest, TestAddDrawableOrder) {}

TEST_F(GlRendererTest, TestAddDrawableDrawn) {}

TEST_F(GlRendererTest, TestCreateGlRendererWithDesktop) {}

// TODO(nicholss): Add a test where the drawable is destructed and the renderer
// gets a dead weakptr.

}  // namespace remoting