5#include "flutter/testing/testing.h"
8#include "gtest/gtest.h"
13#define CAPABILITY_TEST(name, default_value) \
14 TEST(CapabilitiesTest, name) { \
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); \
31TEST(CapabilitiesTest, DefaultColorFormat) {
40TEST(CapabilitiesTest, DefaultStencilFormat) {
49TEST(CapabilitiesTest, DefaultDepthStencilFormat) {
55 EXPECT_EQ(mutated->GetDefaultDepthStencilFormat(),
59TEST(CapabilitiesTest, DefaultGlyphAtlasFormat) {
CapabilitiesBuilder & SetDefaultColorFormat(PixelFormat value)
CapabilitiesBuilder & SetDefaultStencilFormat(PixelFormat value)
CapabilitiesBuilder & SetDefaultGlyphAtlasFormat(PixelFormat value)
std::unique_ptr< Capabilities > Build()
CapabilitiesBuilder & SetDefaultDepthStencilFormat(PixelFormat value)
TEST(AiksCanvasTest, EmptyCullRect)
CAPABILITY_TEST(SupportsOffscreenMSAA, false)