Go to the source code of this file.
◆ UNIT_TEST_CASE
◆ UNIT_TEST_CASE_WITH_EXPECTATION
#define UNIT_TEST_CASE_WITH_EXPECTATION |
( |
|
name, |
|
|
|
expectation |
|
) |
| |
Value: void Dart_Test##
name(); \
Definition at line 17 of file unit_test.h.
28 { \
30 Dart_TestHelper##
name(&zone); \
31 } \
33
34#define UNIT_TEST_CASE_WITH_ZONE(name) \
35 UNIT_TEST_CASE_WITH_ZONE_WITH_EXPECTATION(name, "Pass")
36
39namespace ffi {
40
41extern const char*
kArch;
42extern const char*
kOs;
43
45
47
48class TestCaseBase {
49 public:
52
53 const char*
name()
const {
return name_; }
54 const char*
expectation()
const {
return expectation_; }
55
56 virtual void Run() = 0;
58
61
63
64 private:
67
69 const char* name_;
70 const char* expectation_;
71
73};
74
75class RawTestCase : TestCaseBase {
76 public:
78
82
83 private:
85};
86
87}
88}
89}
90
91#endif
RawTestCase(RunEntry *run, const char *name, const char *expectation)
const char * name() const
static bool update_expectations
TestCaseBase(const char *name, const char *expectation)
const char * expectation() const
void WriteToFile(char *path, const char *contents)
void ReadFromFile(char *path, char **buffer_pointer)
◆ UNIT_TEST_CASE_WITH_ZONE
◆ UNIT_TEST_CASE_WITH_ZONE_WITH_EXPECTATION
#define UNIT_TEST_CASE_WITH_ZONE_WITH_EXPECTATION |
( |
|
name, |
|
|
|
expectation |
|
) |
| |
Value:
UNIT_TEST_CASE_WITH_EXPECTATION(
name, expectation) { \
Dart_TestHelper##
name(&zone); \
} \
Definition at line 27 of file unit_test.h.
29 { \
31 Dart_TestHelper##
name(&zone); \
32 } \