#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) { … }
TEST_F(GlRendererTest, TestAddDrawable) { … }
TEST_F(GlRendererTest, TestAddDrawableDefaultOrder) { … }
TEST_F(GlRendererTest, TestAddDrawableOrder) { … }
TEST_F(GlRendererTest, TestAddDrawableDrawn) { … }
TEST_F(GlRendererTest, TestCreateGlRendererWithDesktop) { … }
}