Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
compiler_unittests.cc File Reference
#include <cstring>
#include "flutter/testing/testing.h"
#include "gtest/gtest.h"
#include "impeller/base/validation.h"
#include "impeller/compiler/compiler.h"
#include "impeller/compiler/compiler_test.h"
#include "impeller/compiler/source_options.h"
#include "impeller/compiler/types.h"

Go to the source code of this file.

Namespaces

namespace  impeller
 
namespace  impeller::compiler
 
namespace  impeller::compiler::testing
 

Macros

#define INSTANTIATE_TARGET_PLATFORM_TEST_SUITE_P(suite_name)
 

Functions

 impeller::compiler::testing::TEST (CompilerTest, ShaderKindMatchingIsSuccessful)
 
 impeller::compiler::testing::TEST_P (CompilerTest, CanCompile)
 
 impeller::compiler::testing::TEST_P (CompilerTest, CanCompileHLSL)
 
 impeller::compiler::testing::TEST_P (CompilerTest, CanCompileHLSLWithMultipleStages)
 
 impeller::compiler::testing::TEST_P (CompilerTest, CanCompileComputeShader)
 
 impeller::compiler::testing::TEST_P (CompilerTest, MustFailDueToExceedingResourcesLimit)
 
 impeller::compiler::testing::TEST_P (CompilerTest, MustFailDueToMultipleLocationPerStructMember)
 
 impeller::compiler::testing::TEST_P (CompilerTest, BindingBaseForFragShader)
 
 impeller::compiler::testing::TEST_P (CompilerTest, UniformsHaveBindingAndSet)
 
 impeller::compiler::testing::TEST_P (CompilerTest, SkSLTextureLookUpOrderOfOperations)
 
 impeller::compiler::testing::TEST_P (CompilerTest, CanCompileStructs)
 
 impeller::compiler::testing::INSTANTIATE_TARGET_PLATFORM_TEST_SUITE_P (CompilerSuite)
 

Macro Definition Documentation

◆ INSTANTIATE_TARGET_PLATFORM_TEST_SUITE_P

#define INSTANTIATE_TARGET_PLATFORM_TEST_SUITE_P (   suite_name)
Value:
suite_name, CompilerTest, \
::testing::Values(TargetPlatform::kOpenGLES, \
TargetPlatform::kOpenGLDesktop, \
TargetPlatform::kMetalDesktop, \
TargetPlatform::kMetalIOS, TargetPlatform::kSkSL), \
[](const ::testing::TestParamInfo<CompilerTest::ParamType>& info) { \
return TargetPlatformToString(info.param); \
});
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
INSTANTIATE_TEST_SUITE_P(EmbedderTestGlVk, EmbedderTestMultiBackend, ::testing::Values(EmbedderTestContextType::kOpenGLContext, EmbedderTestContextType::kVulkanContext))
std::string TargetPlatformToString(TargetPlatform platform)
Definition: types.cc:74

Definition at line 155 of file compiler_unittests.cc.