Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
capabilities_unittests.cc File Reference
#include "flutter/testing/testing.h"
#include "impeller/renderer/capabilities.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Namespaces

namespace  impeller
 
namespace  impeller::testing
 

Macros

#define CAPABILITY_TEST(name, default_value)
 

Functions

 impeller::testing::CAPABILITY_TEST (SupportsOffscreenMSAA, false)
 
 impeller::testing::CAPABILITY_TEST (SupportsSSBO, false)
 
 impeller::testing::CAPABILITY_TEST (SupportsBufferToTextureBlits, false)
 
 impeller::testing::CAPABILITY_TEST (SupportsTextureToTextureBlits, false)
 
 impeller::testing::CAPABILITY_TEST (SupportsFramebufferFetch, false)
 
 impeller::testing::CAPABILITY_TEST (SupportsCompute, false)
 
 impeller::testing::CAPABILITY_TEST (SupportsComputeSubgroups, false)
 
 impeller::testing::CAPABILITY_TEST (SupportsReadFromResolve, false)
 
 impeller::testing::CAPABILITY_TEST (SupportsDecalSamplerAddressMode, false)
 
 impeller::testing::CAPABILITY_TEST (SupportsDeviceTransientTextures, false)
 
 impeller::testing::TEST (CapabilitiesTest, DefaultColorFormat)
 
 impeller::testing::TEST (CapabilitiesTest, DefaultStencilFormat)
 
 impeller::testing::TEST (CapabilitiesTest, DefaultDepthStencilFormat)
 
 impeller::testing::TEST (CapabilitiesTest, DefaultGlyphAtlasFormat)
 

Macro Definition Documentation

◆ CAPABILITY_TEST

#define CAPABILITY_TEST (   name,
  default_value 
)
Value:
TEST(CapabilitiesTest, name) { \
auto defaults = CapabilitiesBuilder().Build(); \
ASSERT_EQ(defaults->name(), default_value); \
auto opposite = CapabilitiesBuilder().Set##name(!default_value).Build(); \
ASSERT_EQ(opposite->name(), !default_value); \
}
#define TEST(S, s, D, expected)
const char * name
Definition fuchsia.cc:50

Definition at line 13 of file capabilities_unittests.cc.

14 { \
15 auto defaults = CapabilitiesBuilder().Build(); \
16 ASSERT_EQ(defaults->name(), default_value); \
17 auto opposite = CapabilitiesBuilder().Set##name(!default_value).Build(); \
18 ASSERT_EQ(opposite->name(), !default_value); \
19 }