Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions | Variables
unit_test.h File Reference
#include "vm/compiler/ffi/unit_test_custom_zone.h"
#include "platform/globals.h"

Go to the source code of this file.

Classes

class  dart::compiler::ffi::TestCaseBase
 
class  dart::compiler::ffi::RawTestCase
 

Namespaces

namespace  dart
 
namespace  dart::compiler
 
namespace  dart::compiler::ffi
 

Macros

#define UNIT_TEST_CASE_WITH_EXPECTATION(name, expectation)
 
#define UNIT_TEST_CASE(name)   UNIT_TEST_CASE_WITH_EXPECTATION(name, "Pass")
 
#define UNIT_TEST_CASE_WITH_ZONE_WITH_EXPECTATION(name, expectation)
 
#define UNIT_TEST_CASE_WITH_ZONE(name)    UNIT_TEST_CASE_WITH_ZONE_WITH_EXPECTATION(name, "Pass")
 

Functions

void dart::compiler::ffi::WriteToFile (char *path, const char *contents)
 
void dart::compiler::ffi::ReadFromFile (char *path, char **buffer_pointer)
 

Variables

const char * dart::compiler::ffi::kArch
 

Macro Definition Documentation

◆ UNIT_TEST_CASE

#define UNIT_TEST_CASE (   name)    UNIT_TEST_CASE_WITH_EXPECTATION(name, "Pass")

Definition at line 23 of file unit_test.h.

◆ UNIT_TEST_CASE_WITH_EXPECTATION

#define UNIT_TEST_CASE_WITH_EXPECTATION (   name,
  expectation 
)
Value:
void Dart_Test##name(); \
static const dart::compiler::ffi::RawTestCase kRegister##name( \
Dart_Test##name, #name, expectation); \
void Dart_Test##name()
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Definition at line 17 of file unit_test.h.

◆ UNIT_TEST_CASE_WITH_ZONE

#define UNIT_TEST_CASE_WITH_ZONE (   name)     UNIT_TEST_CASE_WITH_ZONE_WITH_EXPECTATION(name, "Pass")

Definition at line 35 of file unit_test.h.

◆ UNIT_TEST_CASE_WITH_ZONE_WITH_EXPECTATION

#define UNIT_TEST_CASE_WITH_ZONE_WITH_EXPECTATION (   name,
  expectation 
)
Value:
static void Dart_TestHelper##name(dart::Zone* Z); \
UNIT_TEST_CASE_WITH_EXPECTATION(name, expectation) { \
dart::Zone zone; \
Dart_TestHelper##name(&zone); \
} \
static void Dart_TestHelper##name(dart::Zone* Z)
#define Z

Definition at line 27 of file unit_test.h.