8 #include "gtest/gtest.h"
23 auto contents = std::make_shared<CheckerboardContents>();
26 ASSERT_EQ(contents->GetCoverage(entity), std::nullopt);
30 auto contents = std::make_shared<CheckerboardContents>();
32 contents->SetSquareSize(10);
34 auto content_context = GetContentContext();
35 auto buffer = content_context->GetContext()->CreateCommandBuffer();
37 *content_context->GetContext(),
38 *GetContentContext()->GetRenderTargetCache(), {100, 100});
39 auto render_pass = buffer->CreateRenderPass(render_target);
42 ASSERT_TRUE(render_pass->GetCommands().empty());
43 ASSERT_TRUE(contents->Render(*content_context, entity, *render_pass));
44 ASSERT_FALSE(render_pass->GetCommands().empty());
46 #endif // IMPELLER_DEBUG