| Flutter Impeller |

Classes | Namespaces | Macros | Functions
renderer_dart_unittests.cc File Reference
`#include <memory>`
`#include "flutter/common/settings.h"`
`#include "flutter/common/task_runners.h"`
`#include "flutter/lib/gpu/context.h"`
`#include "flutter/lib/gpu/shader.h"`
`#include "flutter/lib/gpu/shader_library.h"`
`#include "flutter/runtime/dart_isolate.h"`
`#include "flutter/runtime/dart_vm_lifecycle.h"`
`#include "flutter/testing/dart_fixture.h"`
`#include "flutter/testing/dart_isolate_runner.h"`
`#include "flutter/testing/testing.h"`
`#include "fml/memory/ref_ptr.h"`
`#include "impeller/core/shader_types.h"`
`#include "impeller/playground/playground_test.h"`
`#include "impeller/renderer/render_pass.h"`
`#include "impeller/renderer/vertex_descriptor.h"`
`#include "impeller/runtime_stage/runtime_stage.h"`
`#include "gtest/gtest.h"`
`#include "third_party/imgui/imgui.h"`

Go to the source code of this file.

## Classes
class | impeller::testing::RendererDartTest

## Namespaces
| impeller
| impeller::testing

## Macros
#define | FML_USED_ON_EMBEDDER
#define | DART_TEST_CASE(name)

## Functions
static void | impeller::testing::InstantiateTestShaderLibrary ()
| impeller::testing::INSTANTIATE_PLAYGROUND_SUITE (RendererDartTest)
| impeller::testing::TEST_P (RendererDartTest, CanRunDartInPlaygroundFrame)
| impeller::testing::TEST_P (RendererDartTest, CanInstantiateFlutterGPUContext)
| impeller::testing::DART_TEST_CASE (canEmplaceHostBuffer)
| impeller::testing::DART_TEST_CASE (canCreateDeviceBuffer)
| impeller::testing::DART_TEST_CASE (canOverwriteDeviceBuffer)
| impeller::testing::DART_TEST_CASE (deviceBufferOverwriteFailsWhenOutOfBounds)
| impeller::testing::DART_TEST_CASE (deviceBufferOverwriteThrowsForNegativeDestinationOffset)
| impeller::testing::DART_TEST_CASE (canCreateTexture)
| impeller::testing::DART_TEST_CASE (canOverwriteTexture)
| impeller::testing::DART_TEST_CASE (textureOverwriteThrowsForWrongBufferSize)
| impeller::testing::DART_TEST_CASE (textureAsImageReturnsAValidUIImageHandle)
| impeller::testing::DART_TEST_CASE (textureAsImageThrowsWhenNotShaderReadable)
| impeller::testing::DART_TEST_CASE (canCreateShaderLibrary)
| impeller::testing::DART_TEST_CASE (canCreateRenderPassAndSubmit)

## Macro Definition Documentation

## ◆ DART_TEST_CASE

#define DART_TEST_CASE | ( |  | name | ) |

Value:
TEST_P(RendererDartTest, name) { \
auto isolate = GetIsolate(); \
bool result = isolate->RunInIsolateScope([]() -> bool { \
if (tonic::CheckAndHandleError(::Dart_Invoke( \
Dart_RootLibrary(), tonic::ToDart(#name), 0, nullptr))) { \
return false; \
} \
return true; \
}); \
ASSERT_TRUE(result); \
}

Definition at line 121 of file renderer_dart_unittests.cc.

## ◆ FML_USED_ON_EMBEDDER

#define FML_USED_ON_EMBEDDER

Definition at line 5 of file renderer_dart_unittests.cc.

impeller::testing::TEST_P
TEST_P(RendererDartTest, CanInstantiateFlutterGPUContext)
Definition: renderer_dart_unittests.cc:107