5#include "flutter/testing/test_metal_context.h"
6#include "flutter/testing/test_metal_surface.h"
7#include "flutter/testing/testing.h"
12#ifdef SHELL_ENABLE_METAL
14TEST(TestMetalSurface, EmptySurfaceIsInvalid) {
19 TestMetalContext metal_context = TestMetalContext();
22 ASSERT_FALSE(
surface->IsValid());
25TEST(TestMetalSurface, CanCreateValidTestMetalSurface) {
30 TestMetalContext metal_context = TestMetalContext();
34 ASSERT_TRUE(
surface->IsValid());
35 ASSERT_NE(
surface->GetSurface(),
nullptr);
36 ASSERT_NE(
surface->GetGrContext(),
nullptr);
TEST(DisplayListComplexity, EmptyDisplayList)
static constexpr SkISize Make(int32_t w, int32_t h)