|
|
| 51 |
#define NS_TEST_SOURCEDIR \ |
51 |
#define NS_TEST_SOURCEDIR \ |
| 52 |
TestCase::GetSourceDir (__FILE__) |
52 |
TestCase::GetSourceDir (__FILE__) |
| 53 |
|
53 |
|
| 54 |
#define NS_TEST_RETURN_IF_ERROR \ |
|
|
| 55 |
if (GetErrorStatus ()) \ |
| 56 |
{ \ |
| 57 |
return true; \ |
| 58 |
} |
| 59 |
|
| 60 |
// =========================================================================== |
54 |
// =========================================================================== |
| 61 |
// Test for equality (generic version) |
55 |
// Test for equality (generic version) |
| 62 |
// =========================================================================== |
56 |
// =========================================================================== |
|
|
| 79 |
actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
73 |
actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
| 80 |
if (!ContinueOnFailure ()) \ |
74 |
if (!ContinueOnFailure ()) \ |
| 81 |
{ \ |
75 |
{ \ |
| 82 |
return true; \ |
76 |
return; \ |
| 83 |
} \ |
77 |
} \ |
| 84 |
} \ |
78 |
} \ |
| 85 |
} while (false) |
79 |
} while (false) |
|
|
| 189 |
ReportTestFailure (condStream.str (), actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
183 |
ReportTestFailure (condStream.str (), actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
| 190 |
if (!ContinueOnFailure ()) \ |
184 |
if (!ContinueOnFailure ()) \ |
| 191 |
{ \ |
185 |
{ \ |
| 192 |
return true; \ |
186 |
return; \ |
| 193 |
} \ |
187 |
} \ |
| 194 |
} \ |
188 |
} \ |
| 195 |
} while (false) |
189 |
} while (false) |
|
|
| 342 |
actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
336 |
actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
| 343 |
if (!ContinueOnFailure ()) \ |
337 |
if (!ContinueOnFailure ()) \ |
| 344 |
{ \ |
338 |
{ \ |
| 345 |
return true; \ |
339 |
return; \ |
| 346 |
} \ |
340 |
} \ |
| 347 |
} \ |
341 |
} \ |
| 348 |
} while (false) |
342 |
} while (false) |
|
|
| 447 |
actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
441 |
actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
| 448 |
if (!ContinueOnFailure ()) \ |
442 |
if (!ContinueOnFailure ()) \ |
| 449 |
{ \ |
443 |
{ \ |
| 450 |
return true; \ |
444 |
return; \ |
| 451 |
} \ |
445 |
} \ |
| 452 |
} \ |
446 |
} \ |
| 453 |
} while (false) |
447 |
} while (false) |
|
|
| 531 |
actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
525 |
actualStream.str (), limitStream.str (), msgStream.str (), file, line); \ |
| 532 |
if (!ContinueOnFailure ()) \ |
526 |
if (!ContinueOnFailure ()) \ |
| 533 |
{ \ |
527 |
{ \ |
| 534 |
return true; \ |
528 |
return; \ |
| 535 |
} \ |
529 |
} \ |
| 536 |
} \ |
530 |
} \ |
| 537 |
} while (false) |
531 |
} while (false) |
|
|
| 626 |
|
620 |
|
| 627 |
/** |
621 |
/** |
| 628 |
* \brief Run this test case. |
622 |
* \brief Run this test case. |
| 629 |
* \returns Boolean sense of "an error has occurred." |
|
|
| 630 |
*/ |
623 |
*/ |
| 631 |
bool Run (void); |
624 |
void Run (void); |
| 632 |
|
625 |
|
| 633 |
/** |
626 |
/** |
| 634 |
* \brief Set the verbosity of this test case. |
627 |
* \brief Set the verbosity of this test case. |
|
|
| 829 |
/** |
822 |
/** |
| 830 |
* \internal |
823 |
* \internal |
| 831 |
* \brief Implementation to actually run this test case. |
824 |
* \brief Implementation to actually run this test case. |
| 832 |
* \returns Boolean sense of "an error has occurred." |
|
|
| 833 |
*/ |
825 |
*/ |
| 834 |
virtual bool DoRun (void) = 0; |
826 |
virtual void DoRun (void) = 0; |
| 835 |
|
827 |
|
| 836 |
/** |
828 |
/** |
| 837 |
* \internal |
829 |
* \internal |