Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
dart::compiler::ffi::RawTestCase Class Reference

#include <unit_test.h>

Inheritance diagram for dart::compiler::ffi::RawTestCase:
dart::compiler::ffi::TestCaseBase

Public Types

typedef void() RunEntry()
 

Public Member Functions

 RawTestCase (RunEntry *run, const char *name, const char *expectation)
 
virtual void Run ()
 

Detailed Description

Definition at line 76 of file unit_test.h.

Member Typedef Documentation

◆ RunEntry

typedef void() dart::compiler::ffi::RawTestCase::RunEntry()

Definition at line 78 of file unit_test.h.

Constructor & Destructor Documentation

◆ RawTestCase()

dart::compiler::ffi::RawTestCase::RawTestCase ( RunEntry run,
const char *  name,
const char *  expectation 
)
inline

Definition at line 80 of file unit_test.h.

81 : TestCaseBase(name, expectation), run_(run) {}
const char * name() const
Definition unit_test.h:54
const char * expectation() const
Definition unit_test.h:55
Definition run.py:1

Member Function Documentation

◆ Run()

void dart::compiler::ffi::RawTestCase::Run ( )
virtual

Implements dart::compiler::ffi::TestCaseBase.

Definition at line 67 of file run_ffi_unit_tests.cc.

67 {
68 Syslog::Print("Running test: %s\n", name());
69 (*run_)();
70 Syslog::Print("Done: %s\n", name());
71}
static void Print(const char *format,...) PRINTF_ATTRIBUTE(1

The documentation for this class was generated from the following files: