RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed_test::anonymous_namespace{CommonTest.cpp} Namespace Reference

Classes

class  RoundDownTest
class  RoundUpTest
class  roundUpDivisionSafeTest
class  IsAlignedTest
class  IsInTest
class  TrimSpacesTest
class  SplitStringTest
class  CopyPixelsTest

Typedefs

using RoundDownType = std::tuple<uint64_t, uint64_t, uint64_t>
using RoundUpType = std::tuple<uint64_t, uint64_t, uint64_t>
using roundUpDivisionSafeType = std::tuple<uint64_t, uint64_t, uint64_t>
using IsAlignedType = std::tuple<int, int>
using IsInType = std::tuple<string, bool>
using TrimSpacesType = std::tuple<string, string>
using splitStringType = std::tuple<string, char, vector<string>>
using copyPixelsType = std::tuple<int, int, int, int>

Functions

 INSTANTIATE_TEST_SUITE_P (RoundDownTest, RoundDownTest, ::testing::ValuesIn(RoundDownValues))
 TEST_P (RoundDownTest, RoundDownTest)
 INSTANTIATE_TEST_SUITE_P (RoundUpTest, RoundUpTest, ::testing::ValuesIn(RoundUpValues))
 TEST_P (RoundUpTest, RoundUpTest)
 INSTANTIATE_TEST_SUITE_P (roundUpDivisionSafeTest, roundUpDivisionSafeTest, ::testing::ValuesIn(roundUpDivisionSafeValues))
 TEST_P (roundUpDivisionSafeTest, roundUpDivisionSafeTest)
 INSTANTIATE_TEST_SUITE_P (IsAlignedTest, IsAlignedTest, ::testing::Combine(::testing::Range(0, 32), ::testing::Range(0, 32)))
 TEST_P (IsAlignedTest, IsAlignedAfterRoundUpTest)
 INSTANTIATE_TEST_SUITE_P (IsInTest, IsInTest, ::testing::ValuesIn(IsInValues))
 TEST_P (IsInTest, IsInTest)
 INSTANTIATE_TEST_SUITE_P (TrimSpacesTest, TrimSpacesTest, ::testing::ValuesIn(TrimSpacesValues))
 TEST_P (TrimSpacesTest, TrimSpacesTest)
 INSTANTIATE_TEST_SUITE_P (SplitStringTest, SplitStringTest, ::testing::ValuesIn(splitStringValues))
 TEST_P (SplitStringTest, SplitStringTest)
 TEST (MakeUniqueTest, Test)
 INSTANTIATE_TEST_SUITE_P (CopyPixelsTest, CopyPixelsTest, testing::Combine(testing::Range(1, 4, 1), testing::Range(1, 4, 1), testing::Range(1, 4, 1), testing::Range(1, 4, 1)))
 TEST_P (CopyPixelsTest, CopyPixelsTest)

Variables

const RoundDownType RoundDownValues []
const RoundUpType RoundUpValues []
const roundUpDivisionSafeType roundUpDivisionSafeValues []
const IsInType IsInValues []
const TrimSpacesType TrimSpacesValues []
const splitStringType splitStringValues []

Typedef Documentation

◆ copyPixelsType

using rawspeed_test::anonymous_namespace{CommonTest.cpp}::copyPixelsType = std::tuple<int, int, int, int>

Definition at line 283 of file CommonTest.cpp.

◆ IsAlignedType

using rawspeed_test::anonymous_namespace{CommonTest.cpp}::IsAlignedType = std::tuple<int, int>

Definition at line 159 of file CommonTest.cpp.

◆ IsInType

using rawspeed_test::anonymous_namespace{CommonTest.cpp}::IsInType = std::tuple<string, bool>

Definition at line 178 of file CommonTest.cpp.

◆ RoundDownType

using rawspeed_test::anonymous_namespace{CommonTest.cpp}::RoundDownType = std::tuple<uint64_t, uint64_t, uint64_t>

Definition at line 52 of file CommonTest.cpp.

◆ roundUpDivisionSafeType

using rawspeed_test::anonymous_namespace{CommonTest.cpp}::roundUpDivisionSafeType = std::tuple<uint64_t, uint64_t, uint64_t>

Definition at line 106 of file CommonTest.cpp.

◆ RoundUpType

using rawspeed_test::anonymous_namespace{CommonTest.cpp}::RoundUpType = std::tuple<uint64_t, uint64_t, uint64_t>

Definition at line 80 of file CommonTest.cpp.

◆ splitStringType

using rawspeed_test::anonymous_namespace{CommonTest.cpp}::splitStringType = std::tuple<string, char, vector<string>>

Definition at line 239 of file CommonTest.cpp.

◆ TrimSpacesType

using rawspeed_test::anonymous_namespace{CommonTest.cpp}::TrimSpacesType = std::tuple<string, string>

Definition at line 203 of file CommonTest.cpp.

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P() [1/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::INSTANTIATE_TEST_SUITE_P ( CopyPixelsTest ,
CopyPixelsTest ,
testing::Combine(testing::Range(1, 4, 1), testing::Range(1, 4, 1), testing::Range(1, 4, 1), testing::Range(1, 4, 1))  )

◆ INSTANTIATE_TEST_SUITE_P() [2/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::INSTANTIATE_TEST_SUITE_P ( IsAlignedTest ,
IsAlignedTest ,
::testing::Combine(::testing::Range(0, 32), ::testing::Range(0, 32))  )

◆ INSTANTIATE_TEST_SUITE_P() [3/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::INSTANTIATE_TEST_SUITE_P ( IsInTest ,
IsInTest ,
::testing::ValuesIn(IsInValues)  )

References IsInValues.

◆ INSTANTIATE_TEST_SUITE_P() [4/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::INSTANTIATE_TEST_SUITE_P ( RoundDownTest ,
RoundDownTest ,
::testing::ValuesIn(RoundDownValues)  )

References RoundDownValues.

◆ INSTANTIATE_TEST_SUITE_P() [5/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::INSTANTIATE_TEST_SUITE_P ( roundUpDivisionSafeTest ,
roundUpDivisionSafeTest ,
::testing::ValuesIn(roundUpDivisionSafeValues)  )

◆ INSTANTIATE_TEST_SUITE_P() [6/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::INSTANTIATE_TEST_SUITE_P ( RoundUpTest ,
RoundUpTest ,
::testing::ValuesIn(RoundUpValues)  )

References RoundUpValues.

◆ INSTANTIATE_TEST_SUITE_P() [7/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::INSTANTIATE_TEST_SUITE_P ( SplitStringTest ,
SplitStringTest ,
::testing::ValuesIn(splitStringValues)  )

References splitStringValues.

◆ INSTANTIATE_TEST_SUITE_P() [8/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::INSTANTIATE_TEST_SUITE_P ( TrimSpacesTest ,
TrimSpacesTest ,
::testing::ValuesIn(TrimSpacesValues)  )

References TrimSpacesValues.

◆ TEST()

rawspeed_test::anonymous_namespace{CommonTest.cpp}::TEST ( MakeUniqueTest ,
Test  )

Definition at line 272 of file CommonTest.cpp.

References s, and TEST().

Referenced by TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TEST_P() [1/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::TEST_P ( CopyPixelsTest ,
CopyPixelsTest  )

Definition at line 330 of file CommonTest.cpp.

◆ TEST_P() [2/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::TEST_P ( IsAlignedTest ,
IsAlignedAfterRoundUpTest  )

Definition at line 174 of file CommonTest.cpp.

References isAligned(), and roundUp().

Here is the call graph for this function:

◆ TEST_P() [3/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::TEST_P ( IsInTest ,
IsInTest  )

Definition at line 199 of file CommonTest.cpp.

References isIn().

Here is the call graph for this function:

◆ TEST_P() [4/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::TEST_P ( RoundDownTest ,
RoundDownTest  )

Definition at line 76 of file CommonTest.cpp.

References roundDown().

Here is the call graph for this function:

◆ TEST_P() [5/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::TEST_P ( roundUpDivisionSafeTest ,
roundUpDivisionSafeTest  )

Definition at line 155 of file CommonTest.cpp.

References roundUpDivisionSafe().

Here is the call graph for this function:

◆ TEST_P() [6/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::TEST_P ( RoundUpTest ,
RoundUpTest  )

Definition at line 104 of file CommonTest.cpp.

References roundUp().

Here is the call graph for this function:

◆ TEST_P() [7/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::TEST_P ( SplitStringTest ,
SplitStringTest  )

Definition at line 266 of file CommonTest.cpp.

References splitString().

Here is the call graph for this function:

◆ TEST_P() [8/8]

rawspeed_test::anonymous_namespace{CommonTest.cpp}::TEST_P ( TrimSpacesTest ,
TrimSpacesTest  )

Definition at line 237 of file CommonTest.cpp.

References trimSpaces().

Here is the call graph for this function:

Variable Documentation

◆ IsInValues

const IsInType rawspeed_test::anonymous_namespace{CommonTest.cpp}::IsInValues[]
Initial value:
= {
make_tuple("foo", true), make_tuple("foo2", true),
make_tuple("bar", true), make_tuple("baz", true),
make_tuple("foo1", false), make_tuple("bar2", false),
make_tuple("baz-1", false), make_tuple("quz", false),
}

Definition at line 191 of file CommonTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().

◆ RoundDownValues

const RoundDownType rawspeed_test::anonymous_namespace{CommonTest.cpp}::RoundDownValues[]
Initial value:
= {
make_tuple(0, 0, 0), make_tuple(0, 10, 0), make_tuple(10, 0, 10),
make_tuple(10, 10, 10), make_tuple(10, 1, 10), make_tuple(10, 2, 10),
make_tuple(10, 3, 9), make_tuple(10, 4, 8), make_tuple(10, 5, 10),
make_tuple(10, 6, 6), make_tuple(10, 7, 7), make_tuple(10, 8, 8),
make_tuple(10, 9, 9), make_tuple(10, 11, 0), make_tuple(10, 12, 0),
}

Definition at line 66 of file CommonTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().

◆ roundUpDivisionSafeValues

const roundUpDivisionSafeType rawspeed_test::anonymous_namespace{CommonTest.cpp}::roundUpDivisionSafeValues[]

Definition at line 121 of file CommonTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().

◆ RoundUpValues

const RoundUpType rawspeed_test::anonymous_namespace{CommonTest.cpp}::RoundUpValues[]
Initial value:
= {
make_tuple(0, 0, 0), make_tuple(0, 10, 0), make_tuple(10, 0, 10),
make_tuple(10, 10, 10), make_tuple(10, 1, 10), make_tuple(10, 2, 10),
make_tuple(10, 3, 12), make_tuple(10, 4, 12), make_tuple(10, 5, 10),
make_tuple(10, 6, 12), make_tuple(10, 7, 14), make_tuple(10, 8, 16),
make_tuple(10, 9, 18), make_tuple(10, 11, 11), make_tuple(10, 12, 12),
}

Definition at line 94 of file CommonTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().

◆ splitStringValues

const splitStringType rawspeed_test::anonymous_namespace{CommonTest.cpp}::splitStringValues[]
Initial value:
= {
make_tuple("", ' ', vector<string>({})),
make_tuple(" ", ' ', vector<string>({})),
make_tuple(" ini mi,ni moe ", ' ',
vector<string>({"ini", "mi,ni", "moe"})),
make_tuple(" 412, 542,732 , ", ',',
vector<string>({" 412", " 542", "732 ", " "})),
make_tuple("\0 412, 542,732 , ", ',', vector<string>({})),
make_tuple(" 412, 542\0,732 , ", ',', vector<string>({" 412", " 542"})),
}

Definition at line 253 of file CommonTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().

◆ TrimSpacesValues

const TrimSpacesType rawspeed_test::anonymous_namespace{CommonTest.cpp}::TrimSpacesValues[]
Initial value:
= {
#define STR
make_tuple("foo", "foo"),
make_tuple(STR, STR),
make_tuple(" " STR, STR),
make_tuple("\t" STR, STR),
make_tuple(" \t " STR, STR),
make_tuple(STR " ", STR),
make_tuple(STR "\t", STR),
make_tuple(STR " \t ", STR),
make_tuple(" " STR " ", STR),
make_tuple("\t" STR "\t", STR),
make_tuple(" \t " STR " \t ", STR),
make_tuple(" ", ""),
make_tuple(" \t", ""),
make_tuple(" \t ", ""),
make_tuple("\t ", ""),
}
#define STR(a)

Definition at line 216 of file CommonTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().