Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
dart::RawTestCase Class Reference

#include <unit_test.h>

Inheritance diagram for dart::RawTestCase:
dart::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 443 of file unit_test.h.

Member Typedef Documentation

◆ RunEntry

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

Definition at line 445 of file unit_test.h.

Constructor & Destructor Documentation

◆ RawTestCase()

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

Definition at line 447 of file unit_test.h.

448 : TestCaseBase(name, expectation), run_(run) {
449 raw_test_ = true;
450 }
const char * expectation() const
Definition: unit_test.h:291
const char * name() const
Definition: unit_test.h:290
TestCaseBase(const char *name, const char *expectation)
Definition: unit_test.cc:59
Definition: run.py:1

Member Function Documentation

◆ Run()

void dart::RawTestCase::Run ( )
virtual

Implements dart::TestCaseBase.

Definition at line 57 of file run_vm_tests.cc.

57 {
58 Syslog::Print("Running raw test: %s\n", name());
59 (*run_)();
60 Syslog::Print("Done: %s\n", name());
61}
static void Print(const char *format,...) PRINTF_ATTRIBUTE(1

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