All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
TestValidator Class Reference
Inheritance diagram for TestValidator:

Public Member Functions

void validateExpectSuccess (const Data &data, const std::string &message)
 Call fixture_.validator_.validate and if it calls the failureCallback then fail the test with the given message. More...
 
void validateExpectFailure (const Data &data, const std::string &message)
 Call fixture_.validator_.validate and if it calls the successCallback then fail the test with the given message. More...
 
void dataShouldSucceed (const Data &data)
 
void dataShouldNotSucceed (const Data &data, const std::string &message)
 
void dataShouldFail (const Data &data, const ValidationError &error)
 
void dataShouldNotFail (const Data &data, const ValidationError &error, const std::string &message)
 
void processInterestAsInfiniteCertificateChain (const ndn::Interest &interest, const ndn::OnData &onData, const ndn::OnTimeout &onTimeout, const ndn::OnNetworkNack &onNetworkNack)
 
void makeCertificate (PibKey &key, const ptr_lib::shared_ptr< PibKey > &signer)
 

Public Attributes

HierarchicalValidatorFixture fixture_
 

Member Function Documentation

void TestValidator::validateExpectFailure ( const Data data,
const std::string &  message 
)
inline

Call fixture_.validator_.validate and if it calls the successCallback then fail the test with the given message.

Parameters
dataThe Data to validate.
messageThe message to show if the test succeeds.
void TestValidator::validateExpectSuccess ( const Data data,
const std::string &  message 
)
inline

Call fixture_.validator_.validate and if it calls the failureCallback then fail the test with the given message.

Parameters
dataThe Data to validate.
messageThe message to show if the test fails.

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