AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions
testing::gtest_printers_test Namespace Reference

Classes

class  AllowsGenericStreaming
 
class  AllowsGenericStreamingAndImplicitConversionTemplate
 
class  AllowsGenericStreamingTemplate
 
struct  Big
 
struct  const_iterator
 
struct  Foo
 
struct  iterator
 

Functions

template<typename T >
string Print (const T &value)
 
template<typename T >
string PrintByRef (const T &value)
 
 TEST (PrintEnumTest, AnonymousEnum)
 
 TEST (PrintEnumTest, EnumWithoutPrinter)
 
 TEST (PrintEnumTest, EnumWithStreaming)
 
 TEST (PrintEnumTest, EnumWithPrintTo)
 
 TEST (PrintClassTest, BiggestIntConvertible)
 
 TEST (PrintCharTest, PlainChar)
 
 TEST (PrintCharTest, SignedChar)
 
 TEST (PrintCharTest, UnsignedChar)
 
 TEST (PrintBuiltInTypeTest, Bool)
 
 TEST (PrintBuiltInTypeTest, Wchar_t)
 
 TEST (PrintTypeSizeTest, Wchar_t)
 
 TEST (PrintBuiltInTypeTest, Integer)
 
 TEST (PrintBuiltInTypeTest, Size_t)
 
 TEST (PrintBuiltInTypeTest, FloatingPoints)
 
static string PrintPointer (const void *p)
 
 TEST (PrintCStringTest, Const)
 
 TEST (PrintCStringTest, NonConst)
 
 TEST (PrintCStringTest, Null)
 
 TEST (PrintCStringTest, EscapesProperly)
 
 TEST (PrintWideCStringTest, Const)
 
 TEST (PrintWideCStringTest, NonConst)
 
 TEST (PrintWideCStringTest, Null)
 
 TEST (PrintWideCStringTest, EscapesProperly)
 
 TEST (PrintCharPointerTest, SignedChar)
 
 TEST (PrintCharPointerTest, ConstSignedChar)
 
 TEST (PrintCharPointerTest, UnsignedChar)
 
 TEST (PrintCharPointerTest, ConstUnsignedChar)
 
 TEST (PrintPointerToBuiltInTypeTest, Bool)
 
 TEST (PrintPointerToBuiltInTypeTest, Void)
 
 TEST (PrintPointerToBuiltInTypeTest, ConstVoid)
 
 TEST (PrintPointerToPointerTest, IntPointerPointer)
 
void MyFunction (int)
 
 TEST (PrintPointerTest, NonMemberFunctionPointer)
 
template<typename StringType >
AssertionResult HasPrefix (const StringType &str, const StringType &prefix)
 
 TEST (PrintPointerTest, MemberVariablePointer)
 
 TEST (PrintPointerTest, MemberFunctionPointer)
 
template<typename T , size_t N>
string PrintArrayHelper (T(&a)[N])
 
 TEST (PrintArrayTest, OneDimensionalArray)
 
 TEST (PrintArrayTest, TwoDimensionalArray)
 
 TEST (PrintArrayTest, ConstArray)
 
 TEST (PrintArrayTest, CharArrayWithNoTerminatingNul)
 
 TEST (PrintArrayTest, ConstCharArrayWithTerminatingNul)
 
 TEST (PrintArrayTest, WCharArrayWithNoTerminatingNul)
 
 TEST (PrintArrayTest, WConstCharArrayWithTerminatingNul)
 
 TEST (PrintArrayTest, ObjectArray)
 
 TEST (PrintArrayTest, BigArray)
 
 TEST (PrintStringTest, StringInStdNamespace)
 
 TEST (PrintStringTest, StringAmbiguousHex)
 
template<typename Char , typename CharTraits >
std::basic_ostream< Char, CharTraits > & operator<< (std::basic_ostream< Char, CharTraits > &os, const AllowsGenericStreaming &)
 
 TEST (PrintTypeWithGenericStreamingTest, NonTemplateType)
 
template<typename Char , typename CharTraits , typename T >
std::basic_ostream< Char, CharTraits > & operator<< (std::basic_ostream< Char, CharTraits > &os, const AllowsGenericStreamingTemplate< T > &)
 
 TEST (PrintTypeWithGenericStreamingTest, TemplateType)
 
template<typename Char , typename CharTraits , typename T >
std::basic_ostream< Char, CharTraits > & operator<< (std::basic_ostream< Char, CharTraits > &os, const AllowsGenericStreamingAndImplicitConversionTemplate< T > &)
 
 TEST (PrintTypeWithGenericStreamingTest, TypeImplicitlyConvertible)
 
 TEST (PrintStlContainerTest, EmptyDeque)
 
 TEST (PrintStlContainerTest, NonEmptyDeque)
 
 TEST (PrintStlContainerTest, List)
 
 TEST (PrintStlContainerTest, Map)
 
 TEST (PrintStlContainerTest, MultiMap)
 
 TEST (PrintStlContainerTest, Set)
 
 TEST (PrintStlContainerTest, MultiSet)
 
 TEST (PrintStlContainerTest, Pair)
 
 TEST (PrintStlContainerTest, Vector)
 
 TEST (PrintStlContainerTest, LongSequence)
 
 TEST (PrintStlContainerTest, NestedContainer)
 
 TEST (PrintStlContainerTest, OneDimensionalNativeArray)
 
 TEST (PrintStlContainerTest, TwoDimensionalNativeArray)
 
 TEST (PrintStlContainerTest, Iterator)
 
 TEST (PrintStlContainerTest, ConstIterator)
 
 TEST (PrintUnprintableTypeTest, InGlobalNamespace)
 
 TEST (PrintUnprintableTypeTest, InUserNamespace)
 
 TEST (PrintUnpritableTypeTest, BigObject)
 
 TEST (PrintStreamableTypeTest, InGlobalNamespace)
 
 TEST (PrintStreamableTypeTest, TemplateTypeInUserNamespace)
 
 TEST (PrintPrintableTypeTest, InUserNamespace)
 
 TEST (PrintPrintableTypeTest, PointerInUserNamespace)
 
 TEST (PrintPrintableTypeTest, TemplateInUserNamespace)
 
 TEST (PrintReferenceTest, PrintsAddressAndValue)
 
 TEST (PrintReferenceTest, HandlesFunctionPointer)
 
 TEST (PrintReferenceTest, HandlesMemberFunctionPointer)
 
 TEST (PrintReferenceTest, HandlesMemberVariablePointer)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForScalar)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForNonCharPointer)
 
 TEST (FormatForComparisonFailureMessageTest, FormatsNonCharArrayAsPointer)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForCharPointerVsPointer)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForWCharPointerVsPointer)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForCharPointerVsStdString)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForCharArrayVsPointer)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForCharArrayVsCharArray)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForWCharArrayVsPointer)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForWCharArrayVsWCharArray)
 
 TEST (FormatForComparisonFailureMessageTest, WorksForCharArrayVsStdString)
 
 TEST (PrintToStringTest, WorksForScalar)
 
 TEST (PrintToStringTest, WorksForPointerToConstChar)
 
 TEST (PrintToStringTest, WorksForPointerToNonConstChar)
 
 TEST (PrintToStringTest, EscapesForPointerToConstChar)
 
 TEST (PrintToStringTest, EscapesForPointerToNonConstChar)
 
 TEST (PrintToStringTest, WorksForArray)
 
 TEST (PrintToStringTest, WorksForCharArray)
 
 TEST (PrintToStringTest, WorksForCharArrayWithEmbeddedNul)
 
 TEST (UniversalTersePrintTest, WorksForNonReference)
 
 TEST (UniversalTersePrintTest, WorksForReference)
 
 TEST (UniversalTersePrintTest, WorksForCString)
 
 TEST (UniversalPrintTest, WorksForNonReference)
 
 TEST (UniversalPrintTest, WorksForReference)
 
 TEST (UniversalPrintTest, WorksForCString)
 
 TEST (UniversalPrintTest, WorksForCharArray)
 

Function Documentation

◆ HasPrefix()

template<typename StringType >
AssertionResult testing::gtest_printers_test::HasPrefix ( const StringType &  str,
const StringType &  prefix 
)

◆ MyFunction()

void testing::gtest_printers_test::MyFunction ( int  )

◆ operator<<() [1/3]

template<typename Char , typename CharTraits >
std::basic_ostream<Char, CharTraits>& testing::gtest_printers_test::operator<< ( std::basic_ostream< Char, CharTraits > &  os,
const AllowsGenericStreaming  
)

◆ operator<<() [2/3]

template<typename Char , typename CharTraits , typename T >
std::basic_ostream<Char, CharTraits>& testing::gtest_printers_test::operator<< ( std::basic_ostream< Char, CharTraits > &  os,
const AllowsGenericStreamingTemplate< T > &   
)

◆ operator<<() [3/3]

template<typename Char , typename CharTraits , typename T >
std::basic_ostream<Char, CharTraits>& testing::gtest_printers_test::operator<< ( std::basic_ostream< Char, CharTraits > &  os,
const AllowsGenericStreamingAndImplicitConversionTemplate< T > &   
)

◆ Print()

template<typename T >
string testing::gtest_printers_test::Print ( const T &  value)

◆ PrintArrayHelper()

template<typename T , size_t N>
string testing::gtest_printers_test::PrintArrayHelper ( T(&)  a[N])

◆ PrintByRef()

template<typename T >
string testing::gtest_printers_test::PrintByRef ( const T &  value)

◆ PrintPointer()

static string testing::gtest_printers_test::PrintPointer ( const void *  p)
static

◆ TEST() [1/100]

testing::gtest_printers_test::TEST ( PrintEnumTest  ,
AnonymousEnum   
)

◆ TEST() [2/100]

testing::gtest_printers_test::TEST ( PrintEnumTest  ,
EnumWithoutPrinter   
)

◆ TEST() [3/100]

testing::gtest_printers_test::TEST ( PrintEnumTest  ,
EnumWithStreaming   
)

◆ TEST() [4/100]

testing::gtest_printers_test::TEST ( PrintEnumTest  ,
EnumWithPrintTo   
)

◆ TEST() [5/100]

testing::gtest_printers_test::TEST ( PrintClassTest  ,
BiggestIntConvertible   
)

◆ TEST() [6/100]

testing::gtest_printers_test::TEST ( PrintCharTest  ,
PlainChar   
)

◆ TEST() [7/100]

testing::gtest_printers_test::TEST ( PrintCharTest  ,
SignedChar   
)

◆ TEST() [8/100]

testing::gtest_printers_test::TEST ( PrintCharTest  ,
UnsignedChar   
)

◆ TEST() [9/100]

testing::gtest_printers_test::TEST ( PrintBuiltInTypeTest  ,
Bool   
)

◆ TEST() [10/100]

testing::gtest_printers_test::TEST ( PrintBuiltInTypeTest  ,
Wchar_t   
)

◆ TEST() [11/100]

testing::gtest_printers_test::TEST ( PrintTypeSizeTest  ,
Wchar_t   
)

◆ TEST() [12/100]

testing::gtest_printers_test::TEST ( PrintBuiltInTypeTest  ,
Integer   
)

◆ TEST() [13/100]

testing::gtest_printers_test::TEST ( PrintBuiltInTypeTest  ,
Size_t   
)

◆ TEST() [14/100]

testing::gtest_printers_test::TEST ( PrintBuiltInTypeTest  ,
FloatingPoints   
)

◆ TEST() [15/100]

testing::gtest_printers_test::TEST ( PrintCStringTest  ,
Const   
)

◆ TEST() [16/100]

testing::gtest_printers_test::TEST ( PrintCStringTest  ,
NonConst   
)

◆ TEST() [17/100]

testing::gtest_printers_test::TEST ( PrintCStringTest  ,
Null   
)

◆ TEST() [18/100]

testing::gtest_printers_test::TEST ( PrintCStringTest  ,
EscapesProperly   
)

◆ TEST() [19/100]

testing::gtest_printers_test::TEST ( PrintWideCStringTest  ,
Const   
)

◆ TEST() [20/100]

testing::gtest_printers_test::TEST ( PrintWideCStringTest  ,
NonConst   
)

◆ TEST() [21/100]

testing::gtest_printers_test::TEST ( PrintWideCStringTest  ,
Null   
)

◆ TEST() [22/100]

testing::gtest_printers_test::TEST ( PrintWideCStringTest  ,
EscapesProperly   
)

◆ TEST() [23/100]

testing::gtest_printers_test::TEST ( PrintCharPointerTest  ,
SignedChar   
)

◆ TEST() [24/100]

testing::gtest_printers_test::TEST ( PrintCharPointerTest  ,
ConstSignedChar   
)

◆ TEST() [25/100]

testing::gtest_printers_test::TEST ( PrintCharPointerTest  ,
UnsignedChar   
)

◆ TEST() [26/100]

testing::gtest_printers_test::TEST ( PrintCharPointerTest  ,
ConstUnsignedChar   
)

◆ TEST() [27/100]

testing::gtest_printers_test::TEST ( PrintPointerToBuiltInTypeTest  ,
Bool   
)

◆ TEST() [28/100]

testing::gtest_printers_test::TEST ( PrintPointerToBuiltInTypeTest  ,
Void   
)

◆ TEST() [29/100]

testing::gtest_printers_test::TEST ( PrintPointerToBuiltInTypeTest  ,
ConstVoid   
)

◆ TEST() [30/100]

testing::gtest_printers_test::TEST ( PrintPointerToPointerTest  ,
IntPointerPointer   
)

◆ TEST() [31/100]

testing::gtest_printers_test::TEST ( PrintPointerTest  ,
NonMemberFunctionPointer   
)

◆ TEST() [32/100]

testing::gtest_printers_test::TEST ( PrintPointerTest  ,
MemberVariablePointer   
)

◆ TEST() [33/100]

testing::gtest_printers_test::TEST ( PrintPointerTest  ,
MemberFunctionPointer   
)

◆ TEST() [34/100]

testing::gtest_printers_test::TEST ( PrintArrayTest  ,
OneDimensionalArray   
)

◆ TEST() [35/100]

testing::gtest_printers_test::TEST ( PrintArrayTest  ,
TwoDimensionalArray   
)

◆ TEST() [36/100]

testing::gtest_printers_test::TEST ( PrintArrayTest  ,
ConstArray   
)

◆ TEST() [37/100]

testing::gtest_printers_test::TEST ( PrintArrayTest  ,
CharArrayWithNoTerminatingNul   
)

◆ TEST() [38/100]

testing::gtest_printers_test::TEST ( PrintArrayTest  ,
ConstCharArrayWithTerminatingNul   
)

◆ TEST() [39/100]

testing::gtest_printers_test::TEST ( PrintArrayTest  ,
WCharArrayWithNoTerminatingNul   
)

◆ TEST() [40/100]

testing::gtest_printers_test::TEST ( PrintArrayTest  ,
WConstCharArrayWithTerminatingNul   
)

◆ TEST() [41/100]

testing::gtest_printers_test::TEST ( PrintArrayTest  ,
ObjectArray   
)

◆ TEST() [42/100]

testing::gtest_printers_test::TEST ( PrintArrayTest  ,
BigArray   
)

◆ TEST() [43/100]

testing::gtest_printers_test::TEST ( PrintStringTest  ,
StringInStdNamespace   
)

◆ TEST() [44/100]

testing::gtest_printers_test::TEST ( PrintStringTest  ,
StringAmbiguousHex   
)

◆ TEST() [45/100]

testing::gtest_printers_test::TEST ( PrintTypeWithGenericStreamingTest  ,
NonTemplateType   
)

◆ TEST() [46/100]

testing::gtest_printers_test::TEST ( PrintTypeWithGenericStreamingTest  ,
TemplateType   
)

◆ TEST() [47/100]

testing::gtest_printers_test::TEST ( PrintTypeWithGenericStreamingTest  ,
TypeImplicitlyConvertible   
)

◆ TEST() [48/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
EmptyDeque   
)

◆ TEST() [49/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
NonEmptyDeque   
)

◆ TEST() [50/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
List   
)

◆ TEST() [51/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
Map   
)

◆ TEST() [52/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
MultiMap   
)

◆ TEST() [53/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
Set   
)

◆ TEST() [54/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
MultiSet   
)

◆ TEST() [55/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
Pair   
)

◆ TEST() [56/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
Vector   
)

◆ TEST() [57/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
LongSequence   
)

◆ TEST() [58/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
NestedContainer   
)

◆ TEST() [59/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
OneDimensionalNativeArray   
)

◆ TEST() [60/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
TwoDimensionalNativeArray   
)

◆ TEST() [61/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
Iterator   
)

◆ TEST() [62/100]

testing::gtest_printers_test::TEST ( PrintStlContainerTest  ,
ConstIterator   
)

◆ TEST() [63/100]

testing::gtest_printers_test::TEST ( PrintUnprintableTypeTest  ,
InGlobalNamespace   
)

◆ TEST() [64/100]

testing::gtest_printers_test::TEST ( PrintUnprintableTypeTest  ,
InUserNamespace   
)

◆ TEST() [65/100]

testing::gtest_printers_test::TEST ( PrintUnpritableTypeTest  ,
BigObject   
)

◆ TEST() [66/100]

testing::gtest_printers_test::TEST ( PrintStreamableTypeTest  ,
InGlobalNamespace   
)

◆ TEST() [67/100]

testing::gtest_printers_test::TEST ( PrintStreamableTypeTest  ,
TemplateTypeInUserNamespace   
)

◆ TEST() [68/100]

testing::gtest_printers_test::TEST ( PrintPrintableTypeTest  ,
InUserNamespace   
)

◆ TEST() [69/100]

testing::gtest_printers_test::TEST ( PrintPrintableTypeTest  ,
PointerInUserNamespace   
)

◆ TEST() [70/100]

testing::gtest_printers_test::TEST ( PrintPrintableTypeTest  ,
TemplateInUserNamespace   
)

◆ TEST() [71/100]

testing::gtest_printers_test::TEST ( PrintReferenceTest  ,
PrintsAddressAndValue   
)

◆ TEST() [72/100]

testing::gtest_printers_test::TEST ( PrintReferenceTest  ,
HandlesFunctionPointer   
)

◆ TEST() [73/100]

testing::gtest_printers_test::TEST ( PrintReferenceTest  ,
HandlesMemberFunctionPointer   
)

◆ TEST() [74/100]

testing::gtest_printers_test::TEST ( PrintReferenceTest  ,
HandlesMemberVariablePointer   
)

◆ TEST() [75/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForScalar   
)

◆ TEST() [76/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForNonCharPointer   
)

◆ TEST() [77/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
FormatsNonCharArrayAsPointer   
)

◆ TEST() [78/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForCharPointerVsPointer   
)

◆ TEST() [79/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForWCharPointerVsPointer   
)

◆ TEST() [80/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForCharPointerVsStdString   
)

◆ TEST() [81/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForCharArrayVsPointer   
)

◆ TEST() [82/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForCharArrayVsCharArray   
)

◆ TEST() [83/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForWCharArrayVsPointer   
)

◆ TEST() [84/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForWCharArrayVsWCharArray   
)

◆ TEST() [85/100]

testing::gtest_printers_test::TEST ( FormatForComparisonFailureMessageTest  ,
WorksForCharArrayVsStdString   
)

◆ TEST() [86/100]

testing::gtest_printers_test::TEST ( PrintToStringTest  ,
WorksForScalar   
)

◆ TEST() [87/100]

testing::gtest_printers_test::TEST ( PrintToStringTest  ,
WorksForPointerToConstChar   
)

◆ TEST() [88/100]

testing::gtest_printers_test::TEST ( PrintToStringTest  ,
WorksForPointerToNonConstChar   
)

◆ TEST() [89/100]

testing::gtest_printers_test::TEST ( PrintToStringTest  ,
EscapesForPointerToConstChar   
)

◆ TEST() [90/100]

testing::gtest_printers_test::TEST ( PrintToStringTest  ,
EscapesForPointerToNonConstChar   
)

◆ TEST() [91/100]

testing::gtest_printers_test::TEST ( PrintToStringTest  ,
WorksForArray   
)

◆ TEST() [92/100]

testing::gtest_printers_test::TEST ( PrintToStringTest  ,
WorksForCharArray   
)

◆ TEST() [93/100]

testing::gtest_printers_test::TEST ( PrintToStringTest  ,
WorksForCharArrayWithEmbeddedNul   
)

◆ TEST() [94/100]

testing::gtest_printers_test::TEST ( UniversalTersePrintTest  ,
WorksForNonReference   
)

◆ TEST() [95/100]

testing::gtest_printers_test::TEST ( UniversalTersePrintTest  ,
WorksForReference   
)

◆ TEST() [96/100]

testing::gtest_printers_test::TEST ( UniversalTersePrintTest  ,
WorksForCString   
)

◆ TEST() [97/100]

testing::gtest_printers_test::TEST ( UniversalPrintTest  ,
WorksForNonReference   
)

◆ TEST() [98/100]

testing::gtest_printers_test::TEST ( UniversalPrintTest  ,
WorksForReference   
)

◆ TEST() [99/100]

testing::gtest_printers_test::TEST ( UniversalPrintTest  ,
WorksForCString   
)

◆ TEST() [100/100]

testing::gtest_printers_test::TEST ( UniversalPrintTest  ,
WorksForCharArray   
)

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0