VST 3 SDK VST 3.7 SDK for developing VST plug-in

Namespaces | Macros | Typedefs | Functions
testing.h File Reference
`#include "pluginterfaces/test/itest.h"`
`#include <cmath>`
`#include <functional>`
`#include <limits>`

## Namespaces
namespace | Steinberg
namespace | Steinberg::Vst
namespace | Steinberg::Vst::Test

## Macros
#define | SMTG_MAKE_STRING_PRIVATE_DONT_USE(x) #x
#define | SMTG_MAKE_STRING(x) SMTG_MAKE_STRING_PRIVATE_DONT_USE (x)
#define | EXPECT(condition)
#define | EXPECT_TRUE(condition) EXPECT (condition)
#define | EXPECT_FALSE(condition) EXPECT (!condition)
#define | EXPECT_EQ(var1, var2) EXPECT ((var1 == var2))
#define | EXPECT_NE(var1, var2) EXPECT ((var1 != var2))

## Typedefs
using | TestFunc = std::function< bool(ITestResult *)>
| simple test function More...
using | TestFuncWithContext = std::function< bool(FUnknown *, ITestResult *)>
| test function with context pointer More...

## Functions
FUnknown * | createTestFactoryInstance (void *)
| create a Test Factory instance More...
const FUID & | getTestFactoryUID ()
| get the test factory class ID More...
void | registerTest (FIDString name, const char *desc, const TestFunc &func)
| register a simple test function More...
void | registerTest (FIDString name, const char *desc, TestFunc &&func)
| register a simple test function More...
void | registerTest (FIDString name, const char *desc, const TestFuncWithContext &func)
| register a test function with context pointer More...
void | registerTest (FIDString name, const char *desc, TestFuncWithContext &&func)
| register a test function with context pointer More...
void | registerTest (FIDString name, ITest *test)
| register a custom test, the test object will be owned by the implementation More...
template<typename T , typename std::enable_if< std::is_floating_point< T >::value >::type * = nullptr>
constexpr bool | equal (const T &lhs, const T &rhs) noexcept
template<typename T >
constexpr bool | notEqual (const T &lhs, const T &rhs) noexcept
template<typename T >
constexpr bool | maxDiff (const T &lhs, const T &rhs, const T &maxDiff) noexcept

## Macro Definition Documentation

## ◆ SMTG_MAKE_STRING_PRIVATE_DONT_USE

#define SMTG_MAKE_STRING_PRIVATE_DONT_USE | ( |  | x | ) | #x

## ◆ SMTG_MAKE_STRING

#define SMTG_MAKE_STRING | ( |  | x | ) | SMTG_MAKE_STRING_PRIVATE_DONT_USE (x)

## ◆ EXPECT

#define EXPECT | ( |  | condition | ) |

Value:
{ \
if (!(condition)) \
{ \
testResult->addErrorMessage (STR (__FILE__ ":" SMTG_MAKE_STRING ( \
__LINE__) ": error: " SMTG_MAKE_STRING (condition))); \
return false; \
} \
}
SMTG_MAKE_STRING
#define SMTG_MAKE_STRING(x)
Definition: testing.h:193

## ◆ EXPECT_TRUE

#define EXPECT_TRUE | ( |  | condition | ) | EXPECT (condition)

## ◆ EXPECT_FALSE

#define EXPECT_FALSE | ( |  | condition | ) | EXPECT (!condition)

## ◆ EXPECT_EQ

#define EXPECT_EQ | ( |  | var1,
|  |  | var2
| ) |  | EXPECT ((var1 == var2))

## ◆ EXPECT_NE

#define EXPECT_NE | ( |  | var1,
|  |  | var2
| ) |  | EXPECT ((var1 != var2))

Empty

Copyright © Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.