Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
proc_table_gles_unittests.cc File Reference
#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.

Namespaces

namespace  impeller
 
namespace  impeller::testing
 

Macros

#define EXPECT_AVAILABLE(proc_ivar)    EXPECT_TRUE(mock_gles->GetProcTable().proc_ivar.IsAvailable());
 
#define EXPECT_UNAVAILABLE(proc_ivar)    EXPECT_FALSE(mock_gles->GetProcTable().proc_ivar.IsAvailable());
 

Functions

 impeller::testing::TEST (ProcTableGLES, ResolvesCorrectClearDepthProcOnES)
 
 impeller::testing::TEST (ProcTableGLES, ResolvesCorrectClearDepthProcOnDesktopGL)
 

Macro Definition Documentation

◆ 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} // namespace testing
37} // namespace impeller
#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)
Definition unit_test.h:685

◆ EXPECT_UNAVAILABLE

#define EXPECT_UNAVAILABLE (   proc_ivar)     EXPECT_FALSE(mock_gles->GetProcTable().proc_ivar.IsAvailable());

Definition at line 17 of file proc_table_gles_unittests.cc.