Flutter Impeller
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_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/playground/playground_test.h"
#include "impeller/renderer/render_pass.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 (Context::BackendType backend_type)
 
 impeller::testing::INSTANTIATE_PLAYGROUND_SUITE (RendererDartTest)
 
 impeller::testing::TEST_P (RendererDartTest, CanRunDartInPlaygroundFrame)
 
 impeller::testing::TEST_P (RendererDartTest, CanInstantiateFlutterGPUContext)
 
 impeller::testing::DART_TEST_CASE (canCreateShaderLibrary)
 
 impeller::testing::DART_TEST_CASE (canReflectUniformStructs)
 
 impeller::testing::DART_TEST_CASE (uniformBindFailsForInvalidHostBufferOffset)
 
 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 117 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:103