Imt.Base C++ API
V4.1.1.0
Loading...
Searching...
No Matches
TestUtil.h
Go to the documentation of this file.
1
// (c) IMT - Information Management Technology AG, CH-9470 Buchs, www.imt.ch.
2
3
#ifndef IMT_BASE_DFF_UNIT_TEST_HELPER_TESTUTIL_H
4
#define IMT_BASE_DFF_UNIT_TEST_HELPER_TESTUTIL_H
5
6
#include <
Imt.Base.Core.Platform/Platform.h
>
7
#include <
Imt.Base.Core.Platform/StaticClass.h
>
8
9
namespace
unitTestHelper
{
10
14
class
TestUtil
final :
private
::imt::base::core::platform::StaticClass
{
15
16
public
:
17
25
static
void
assertByteBuffer
(
uint8_t
const
*
const
pExpectedBuffer,
uint32_t
const
expectedSize,
uint8_t
const
*
const
pActualBuffer,
uint32_t
const
actualSize);
26
27
private
:
28
32
static
std::string getBufferError(
uint8_t
const
*
const
pExpectedBuffer,
uint32_t
const
expectedSize,
uint8_t
const
*
const
pActualBuffer,
uint32_t
const
actualSize);
33
};
34
35
}
// namespace unitTestHelper
36
37
#endif
// IMT_BASE_DFF_UNIT_TEST_HELPER_TESTUTIL_H
Platform.h
StaticClass.h
imt::base::core::platform::StaticClass
Base class for a static class that disables construction, copy, assignment and move of instances.
Definition
StaticClass.h:48
unitTestHelper::TestUtil
Provides utility functions for TestClasses.
Definition
TestUtil.h:14
unitTestHelper::TestUtil::assertByteBuffer
static void assertByteBuffer(uint8_t const *const pExpectedBuffer, uint32_t const expectedSize, uint8_t const *const pActualBuffer, uint32_t const actualSize)
Assert method for two byte buffers.
unitTestHelper
Definition
ActivePartHelper.h:11
uint32_t
unsigned __int32 uint32_t
Definition
stdint.h:64
uint8_t
unsigned __int8 uint8_t
Definition
stdint.h:62
Imt.Base
Imt.Base.Dff.UnitTest.Helper
inc
Imt.Base.Dff.UnitTest.Helper
TestUtil.h
Generated by
1.9.7