#include <optional>
#include "flutter/testing/testing.h"
#include "gtest/gtest.h"
#include "impeller/renderer/backend/gles/proc_table_gles.h"
#include "impeller/renderer/backend/gles/test/mock_gles.h"
Go to the source code of this file.
◆ EXPECT_AVAILABLE
#define EXPECT_AVAILABLE |
( |
|
proc_ivar | ) |
EXPECT_TRUE(mock_gles->GetProcTable().proc_ivar.IsAvailable()); |
Definition at line 15 of file proc_table_gles_unittests.cc.
20 {
21 auto mock_gles = MockGLES::Init(std::nullopt, "OpenGL ES 3.0");
22 EXPECT_TRUE(mock_gles->GetProcTable().GetDescription()->IsES());
23
26}
27
28TEST(ProcTableGLES, ResolvesCorrectClearDepthProcOnDesktopGL) {
29 auto mock_gles = MockGLES::Init(std::nullopt, "OpenGL 4.0");
30 EXPECT_FALSE(mock_gles->GetProcTable().GetDescription()->IsES());
31
34}
35
36}
37}
#define TEST(S, s, D, expected)
#define FOR_EACH_IMPELLER_DESKTOP_ONLY_PROC(PROC)
#define FOR_EACH_IMPELLER_ES_ONLY_PROC(PROC)
#define EXPECT_AVAILABLE(proc_ivar)
#define EXPECT_UNAVAILABLE(proc_ivar)
#define EXPECT_TRUE(handle)
◆ EXPECT_UNAVAILABLE
#define EXPECT_UNAVAILABLE |
( |
|
proc_ivar | ) |
EXPECT_FALSE(mock_gles->GetProcTable().proc_ivar.IsAvailable()); |