5#include "flutter/testing/testing.h"
6#include "gtest/gtest.h"
14TEST(GPUTracerGLES, CanFormatFramebufferErrorMessage) {
15 auto const extensions = std::vector<const unsigned char*>{
16 reinterpret_cast<const unsigned char*
>(
"GL_KHR_debug"),
17 reinterpret_cast<const unsigned char*
>(
"GL_EXT_disjoint_timer_query"),
21 std::make_shared<GPUTracerGLES>(mock_gles->GetProcTable(),
true);
22 tracer->RecordRasterThread();
23 tracer->MarkFrameStart(mock_gles->GetProcTable());
24 tracer->MarkFrameEnd(mock_gles->GetProcTable());
26 auto calls = mock_gles->GetCapturedCalls();
28 std::vector<std::string> expected = {
"glGenQueriesEXT",
"glBeginQueryEXT",
30 for (
auto i = 0;
i < 3;
i++) {
31 EXPECT_EQ(calls[
i], expected[
i]);
36 tracer->MarkFrameStart(mock_gles->GetProcTable());
38 calls = mock_gles->GetCapturedCalls();
39 std::vector<std::string> expected_b = {
"glGetQueryObjectuivEXT",
40 "glGetQueryObjectui64vEXT",
41 "glDeleteQueriesEXT"};
42 for (
auto i = 0;
i < 3;
i++) {
43 EXPECT_EQ(calls[
i], expected_b[
i]);
static std::shared_ptr< MockGLES > Init(const std::optional< std::vector< const unsigned char * > > &extensions=std::nullopt, const char *version_string="OpenGL ES 3.0", ProcTableGLES::Resolver resolver=kMockResolverGLES)
Returns an initialized |MockGLES| instance.
TEST(AiksCanvasTest, EmptyCullRect)