RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
MD5Test.cpp File Reference
#include "md5.h"
#include "adt/Casts.h"
#include <array>
#include <cstdint>
#include <cstring>
#include <string_view>
#include <tuple>
#include <utility>
#include <gtest/gtest.h>
Include dependency graph for MD5Test.cpp:

Go to the source code of this file.

Classes

class  MD5Test

Typedefs

using MD5Testcase

Functions

 INSTANTIATE_TEST_SUITE_P (MD5Test, MD5Test, ::testing::ValuesIn(testCases))
 TEST_P (MD5Test, CheckTestCaseSet)
 TEST_P (MD5Test, CheckTestCaseSetInParts)

Variables

constexpr auto TESTCASE
static const std::array< MD5Testcase, 136 > testCases

Typedef Documentation

◆ MD5Testcase

using MD5Testcase
Initial value:
std::pair<rawspeed::md5::MD5Hasher::state_type, const uint8_t*>

Definition at line 40 of file MD5Test.cpp.

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P()

INSTANTIATE_TEST_SUITE_P ( MD5Test ,
MD5Test ,
::testing::ValuesIn(testCases)  )

References testCases.

◆ TEST_P() [1/2]

TEST_P ( MD5Test ,
CheckTestCaseSet  )

Definition at line 388 of file MD5Test.cpp.

◆ TEST_P() [2/2]

TEST_P ( MD5Test ,
CheckTestCaseSetInParts  )

Definition at line 397 of file MD5Test.cpp.

References rawspeed::md5::MD5::flush(), rawspeed::implicit_cast(), and rawspeed::md5::MD5::take().

Here is the call graph for this function:

Variable Documentation

◆ TESTCASE

auto TESTCASE
constexpr
Initial value:
const char* msg) -> MD5Testcase {
return {{a, b, c, d}, reinterpret_cast<const uint8_t*>(msg)};
}
std::pair< rawspeed::md5::MD5Hasher::state_type, const uint8_t * > MD5Testcase
Definition MD5Test.cpp:40

Definition at line 58 of file MD5Test.cpp.

◆ testCases

const std::array<MD5Testcase, 136> testCases
static

Definition at line 65 of file MD5Test.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().