webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Typedefs | Functions
JsonTest Namespace Reference

Unit testing framework. More...

Classes

class  Failure
 
struct  PredicateContext
 
class  Runner
 
class  TestCase
 
class  TestResult
 

Typedefs

typedef TestCase *(* TestCaseFactory) ()
 Function pointer type for TestCase factory. More...
 

Functions

TestResultcheckStringEqual (TestResult &result, const std::string &expected, const std::string &actual, const char *file, unsigned int line, const char *expr)
 
template<typename T , typename U >
TestResultcheckEqual (TestResult &result, const T &expected, const U &actual, const char *file, unsigned int line, const char *expr)
 

Detailed Description

Unit testing framework.

Warning
: all assertions are non-aborting, test case execution will continue even if an assertion namespace. This constraint is for portability: the framework needs to compile on Visual Studio 6 and must not require exception usage.

Typedef Documentation

◆ TestCaseFactory

typedef TestCase*(* JsonTest::TestCaseFactory) ()

Function pointer type for TestCase factory.

Function Documentation

◆ checkEqual()

template<typename T , typename U >
TestResult& JsonTest::checkEqual ( TestResult result,
const T expected,
const U &  actual,
const char *  file,
unsigned int  line,
const char *  expr 
)

◆ checkStringEqual()

TestResult & JsonTest::checkStringEqual ( TestResult result,
const std::string expected,
const std::string actual,
const char *  file,
unsigned int  line,
const char *  expr 
)