AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Macros | Functions | Variables
gtest_output_test_.cc File Reference
#include "gtest/gtest-spi.h"
#include "gtest/gtest.h"
#include "src/gtest-internal-inl.h"
#include <stdlib.h>
Include dependency graph for gtest_output_test_.cc:

Classes

class  FailingParamTest
 
class  NonFatalFailureInFixtureConstructorTest
 
class  FatalFailureInFixtureConstructorTest
 
class  NonFatalFailureInSetUpTest
 
class  FatalFailureInSetUpTest
 
class  foo::MixedUpTestCaseTest
 
class  foo::MixedUpTestCaseWithSameTestNameTest
 
class  bar::MixedUpTestCaseTest
 
class  bar::MixedUpTestCaseWithSameTestNameTest
 
class  TEST_F_before_TEST_in_same_test_case
 
class  TEST_before_TEST_F_in_same_test_case
 
class  ExpectFailureTest
 
class  FooEnvironment
 
class  BarEnvironment
 

Namespaces

 foo
 
 bar
 

Macros

#define GTEST_IMPLEMENTATION_   1
 

Functions

void TestEq1 (int x)
 
void TryTestSubroutine ()
 
 TEST (PassingTest, PassingTest1)
 
 TEST (PassingTest, PassingTest2)
 
 TEST_P (FailingParamTest, Fails)
 
 INSTANTIATE_TEST_CASE_P (PrintingFailingParams, FailingParamTest, testing::Values(2))
 
 TEST (NonfatalFailureTest, EscapesStringOperands)
 
 TEST (NonfatalFailureTest, DiffForLongStrings)
 
 TEST (FatalFailureTest, FatalFailureInSubroutine)
 
 TEST (FatalFailureTest, FatalFailureInNestedSubroutine)
 
 TEST (FatalFailureTest, NonfatalFailureInSubroutine)
 
 TEST (LoggingTest, InterleavingLoggingAndAssertions)
 
void SubWithoutTrace (int n)
 
void SubWithTrace (int n)
 
 TEST (SCOPED_TRACETest, ObeysScopes)
 
 TEST (SCOPED_TRACETest, WorksInLoop)
 
 TEST (SCOPED_TRACETest, WorksInSubroutine)
 
 TEST (SCOPED_TRACETest, CanBeNested)
 
 TEST (SCOPED_TRACETest, CanBeRepeated)
 
 TEST (DisabledTestsWarningTest, DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning)
 
void AdHocTest ()
 
int RunAllTests ()
 
 TEST_F (NonFatalFailureInFixtureConstructorTest, FailureInConstructor)
 
 TEST_F (FatalFailureInFixtureConstructorTest, FailureInConstructor)
 
 TEST_F (NonFatalFailureInSetUpTest, FailureInSetUp)
 
 TEST_F (FatalFailureInSetUpTest, FailureInSetUp)
 
 TEST (AddFailureAtTest, MessageContainsSpecifiedFileAndLineNumber)
 
 foo::TEST_F (MixedUpTestCaseTest, FirstTestFromNamespaceFoo)
 
 foo::TEST_F (MixedUpTestCaseTest, SecondTestFromNamespaceFoo)
 
 foo::TEST_F (MixedUpTestCaseWithSameTestNameTest, TheSecondTestWithThisNameShouldFail)
 
 bar::TEST_F (MixedUpTestCaseTest, ThisShouldFail)
 
 bar::TEST_F (MixedUpTestCaseTest, ThisShouldFailToo)
 
 bar::TEST_F (MixedUpTestCaseWithSameTestNameTest, TheSecondTestWithThisNameShouldFail)
 
 TEST_F (TEST_F_before_TEST_in_same_test_case, DefinedUsingTEST_F)
 
 TEST (TEST_F_before_TEST_in_same_test_case, DefinedUsingTESTAndShouldFail)
 
 TEST (TEST_before_TEST_F_in_same_test_case, DefinedUsingTEST)
 
 TEST_F (TEST_before_TEST_F_in_same_test_case, DefinedUsingTEST_FAndShouldFail)
 
 TEST (ExpectNonfatalFailureTest, CanReferenceGlobalVariables)
 
 TEST (ExpectNonfatalFailureTest, CanReferenceLocalVariables)
 
 TEST (ExpectNonfatalFailureTest, SucceedsWhenThereIsOneNonfatalFailure)
 
 TEST (ExpectNonfatalFailureTest, FailsWhenThereIsNoNonfatalFailure)
 
 TEST (ExpectNonfatalFailureTest, FailsWhenThereAreTwoNonfatalFailures)
 
 TEST (ExpectNonfatalFailureTest, FailsWhenThereIsOneFatalFailure)
 
 TEST (ExpectNonfatalFailureTest, FailsWhenStatementReturns)
 
 TEST (ExpectFatalFailureTest, CanReferenceGlobalVariables)
 
 TEST (ExpectFatalFailureTest, CanReferenceLocalStaticVariables)
 
 TEST (ExpectFatalFailureTest, SucceedsWhenThereIsOneFatalFailure)
 
 TEST (ExpectFatalFailureTest, FailsWhenThereIsNoFatalFailure)
 
void FatalFailure ()
 
 TEST (ExpectFatalFailureTest, FailsWhenThereAreTwoFatalFailures)
 
 TEST (ExpectFatalFailureTest, FailsWhenThereIsOneNonfatalFailure)
 
 TEST (ExpectFatalFailureTest, FailsWhenStatementReturns)
 
 TEST_F (ExpectFailureTest, ExpectFatalFailure)
 
 TEST_F (ExpectFailureTest, ExpectNonFatalFailure)
 
 TEST_F (ExpectFailureTest, ExpectFatalFailureOnAllThreads)
 
 TEST_F (ExpectFailureTest, ExpectNonFatalFailureOnAllThreads)
 
int main (int argc, char **argv)
 

Variables

static const char kGoldenString [] = "\"Line\0 1\"\nLine 2"
 
int global_integer = 0
 

Macro Definition Documentation

◆ GTEST_IMPLEMENTATION_

#define GTEST_IMPLEMENTATION_   1

Function Documentation

◆ AdHocTest()

void AdHocTest ( )

◆ FatalFailure()

void FatalFailure ( )

◆ INSTANTIATE_TEST_CASE_P()

INSTANTIATE_TEST_CASE_P ( PrintingFailingParams  ,
FailingParamTest  ,
testing::Values(2)   
)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ RunAllTests()

int RunAllTests ( )

◆ SubWithoutTrace()

void SubWithoutTrace ( int  n)

◆ SubWithTrace()

void SubWithTrace ( int  n)

◆ TEST() [1/31]

TEST ( PassingTest  ,
PassingTest1   
)

◆ TEST() [2/31]

TEST ( PassingTest  ,
PassingTest2   
)

◆ TEST() [3/31]

TEST ( NonfatalFailureTest  ,
EscapesStringOperands   
)

◆ TEST() [4/31]

TEST ( NonfatalFailureTest  ,
DiffForLongStrings   
)

◆ TEST() [5/31]

TEST ( FatalFailureTest  ,
FatalFailureInSubroutine   
)

◆ TEST() [6/31]

TEST ( FatalFailureTest  ,
FatalFailureInNestedSubroutine   
)

◆ TEST() [7/31]

TEST ( FatalFailureTest  ,
NonfatalFailureInSubroutine   
)

◆ TEST() [8/31]

TEST ( LoggingTest  ,
InterleavingLoggingAndAssertions   
)

◆ TEST() [9/31]

TEST ( SCOPED_TRACETest  ,
ObeysScopes   
)

◆ TEST() [10/31]

TEST ( SCOPED_TRACETest  ,
WorksInLoop   
)

◆ TEST() [11/31]

TEST ( SCOPED_TRACETest  ,
WorksInSubroutine   
)

◆ TEST() [12/31]

TEST ( SCOPED_TRACETest  ,
CanBeNested   
)

◆ TEST() [13/31]

TEST ( SCOPED_TRACETest  ,
CanBeRepeated   
)

◆ TEST() [14/31]

TEST ( DisabledTestsWarningTest  ,
DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning   
)

◆ TEST() [15/31]

TEST ( AddFailureAtTest  ,
MessageContainsSpecifiedFileAndLineNumber   
)

◆ TEST() [16/31]

TEST ( TEST_F_before_TEST_in_same_test_case  ,
DefinedUsingTESTAndShouldFail   
)

◆ TEST() [17/31]

TEST ( TEST_before_TEST_F_in_same_test_case  ,
DefinedUsingTEST   
)

◆ TEST() [18/31]

TEST ( ExpectNonfatalFailureTest  ,
CanReferenceGlobalVariables   
)

◆ TEST() [19/31]

TEST ( ExpectNonfatalFailureTest  ,
CanReferenceLocalVariables   
)

◆ TEST() [20/31]

TEST ( ExpectNonfatalFailureTest  ,
SucceedsWhenThereIsOneNonfatalFailure   
)

◆ TEST() [21/31]

TEST ( ExpectNonfatalFailureTest  ,
FailsWhenThereIsNoNonfatalFailure   
)

◆ TEST() [22/31]

TEST ( ExpectNonfatalFailureTest  ,
FailsWhenThereAreTwoNonfatalFailures   
)

◆ TEST() [23/31]

TEST ( ExpectNonfatalFailureTest  ,
FailsWhenThereIsOneFatalFailure   
)

◆ TEST() [24/31]

TEST ( ExpectNonfatalFailureTest  ,
FailsWhenStatementReturns   
)

◆ TEST() [25/31]

TEST ( ExpectFatalFailureTest  ,
CanReferenceGlobalVariables   
)

◆ TEST() [26/31]

TEST ( ExpectFatalFailureTest  ,
CanReferenceLocalStaticVariables   
)

◆ TEST() [27/31]

TEST ( ExpectFatalFailureTest  ,
SucceedsWhenThereIsOneFatalFailure   
)

◆ TEST() [28/31]

TEST ( ExpectFatalFailureTest  ,
FailsWhenThereIsNoFatalFailure   
)

◆ TEST() [29/31]

TEST ( ExpectFatalFailureTest  ,
FailsWhenThereAreTwoFatalFailures   
)

◆ TEST() [30/31]

TEST ( ExpectFatalFailureTest  ,
FailsWhenThereIsOneNonfatalFailure   
)

◆ TEST() [31/31]

TEST ( ExpectFatalFailureTest  ,
FailsWhenStatementReturns   
)

◆ TEST_F() [1/10]

TEST_F ( NonFatalFailureInFixtureConstructorTest  ,
FailureInConstructor   
)

◆ TEST_F() [2/10]

TEST_F ( FatalFailureInFixtureConstructorTest  ,
FailureInConstructor   
)

◆ TEST_F() [3/10]

TEST_F ( NonFatalFailureInSetUpTest  ,
FailureInSetUp   
)

◆ TEST_F() [4/10]

TEST_F ( FatalFailureInSetUpTest  ,
FailureInSetUp   
)

◆ TEST_F() [5/10]

TEST_F ( TEST_F_before_TEST_in_same_test_case  ,
DefinedUsingTEST_F   
)

◆ TEST_F() [6/10]

TEST_F ( TEST_before_TEST_F_in_same_test_case  ,
DefinedUsingTEST_FAndShouldFail   
)

◆ TEST_F() [7/10]

TEST_F ( ExpectFailureTest  ,
ExpectFatalFailure   
)

◆ TEST_F() [8/10]

TEST_F ( ExpectFailureTest  ,
ExpectNonFatalFailure   
)

◆ TEST_F() [9/10]

TEST_F ( ExpectFailureTest  ,
ExpectFatalFailureOnAllThreads   
)

◆ TEST_F() [10/10]

TEST_F ( ExpectFailureTest  ,
ExpectNonFatalFailureOnAllThreads   
)

◆ TEST_P()

TEST_P ( FailingParamTest  ,
Fails   
)

◆ TestEq1()

void TestEq1 ( int  x)

◆ TryTestSubroutine()

void TryTestSubroutine ( )

Variable Documentation

◆ global_integer

int global_integer = 0

◆ kGoldenString

const char kGoldenString[] = "\"Line\0 1\"\nLine 2"
static

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