proxygen
|
#include "gtest/gtest-spi.h"
#include "gtest/gtest.h"
#include "src/gtest-internal-inl.h"
#include <stdlib.h>
Go to the source code of this file.
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 |
#define GTEST_IMPLEMENTATION_ 1 |
Definition at line 46 of file gtest_output_test_.cc.
void AdHocTest | ( | ) |
void FatalFailure | ( | ) |
Definition at line 710 of file gtest_output_test_.cc.
References FAIL.
INSTANTIATE_TEST_CASE_P | ( | PrintingFailingParams | , |
FailingParamTest | , | ||
testing::Values(2) | |||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 1024 of file gtest_output_test_.cc.
References testing::AddGlobalTestEnvironment(), count, testing::internal::posix::FReopen(), GTEST_FLAG, testing::InitGoogleTest(), RUN_ALL_TESTS(), RunAllTests(), and string.
int RunAllTests | ( | ) |
void SubWithoutTrace | ( | int | n | ) |
void SubWithTrace | ( | int | n | ) |
Definition at line 173 of file gtest_output_test_.cc.
References SCOPED_TRACE, and SubWithoutTrace().
TEST | ( | PassingTest | , |
PassingTest1 | |||
) |
Definition at line 85 of file gtest_output_test_.cc.
TEST | ( | PassingTest | , |
PassingTest2 | |||
) |
Definition at line 88 of file gtest_output_test_.cc.
TEST | ( | NonfatalFailureTest | , |
EscapesStringOperands | |||
) |
Definition at line 107 of file gtest_output_test_.cc.
References EXPECT_EQ, kGoldenString, and string.
TEST | ( | NonfatalFailureTest | , |
DiffForLongStrings | |||
) |
Definition at line 115 of file gtest_output_test_.cc.
References EXPECT_EQ, kGoldenString, and string.
TEST | ( | FatalFailureTest | , |
FatalFailureInSubroutine | |||
) |
TEST | ( | FatalFailureTest | , |
FatalFailureInNestedSubroutine | |||
) |
TEST | ( | FatalFailureTest | , |
NonfatalFailureInSubroutine | |||
) |
TEST | ( | LoggingTest | , |
InterleavingLoggingAndAssertions | |||
) |
TEST | ( | SCOPED_TRACETest | , |
ObeysScopes | |||
) |
TEST | ( | SCOPED_TRACETest | , |
WorksInLoop | |||
) |
Definition at line 199 of file gtest_output_test_.cc.
References i, SCOPED_TRACE, and SubWithoutTrace().
TEST | ( | SCOPED_TRACETest | , |
WorksInSubroutine | |||
) |
TEST | ( | SCOPED_TRACETest | , |
CanBeNested | |||
) |
TEST | ( | SCOPED_TRACETest | , |
CanBeRepeated | |||
) |
Definition at line 227 of file gtest_output_test_.cc.
References ADD_FAILURE, SCOPED_TRACE, and TEST().
TEST | ( | DisabledTestsWarningTest | , |
DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning | |||
) |
Definition at line 326 of file gtest_output_test_.cc.
TEST | ( | AddFailureAtTest | , |
MessageContainsSpecifiedFileAndLineNumber | |||
) |
Definition at line 461 of file gtest_output_test_.cc.
References ADD_FAILURE_AT, GTEST_CHECK_, GTEST_DISALLOW_COPY_AND_ASSIGN_, and TEST_F().
TEST | ( | TEST_F_before_TEST_in_same_test_case | , |
DefinedUsingTESTAndShouldFail | |||
) |
Definition at line 581 of file gtest_output_test_.cc.
TEST | ( | TEST_before_TEST_F_in_same_test_case | , |
DefinedUsingTEST | |||
) |
Definition at line 586 of file gtest_output_test_.cc.
TEST | ( | ExpectNonfatalFailureTest | , |
CanReferenceGlobalVariables | |||
) |
Definition at line 597 of file gtest_output_test_.cc.
References EXPECT_EQ, EXPECT_NONFATAL_FAILURE, and global_integer.
TEST | ( | ExpectNonfatalFailureTest | , |
CanReferenceLocalVariables | |||
) |
Definition at line 606 of file gtest_output_test_.cc.
References EXPECT_EQ, EXPECT_NONFATAL_FAILURE, and m.
TEST | ( | ExpectNonfatalFailureTest | , |
SucceedsWhenThereIsOneNonfatalFailure | |||
) |
Definition at line 617 of file gtest_output_test_.cc.
References ADD_FAILURE, and EXPECT_NONFATAL_FAILURE.
TEST | ( | ExpectNonfatalFailureTest | , |
FailsWhenThereIsNoNonfatalFailure | |||
) |
Definition at line 625 of file gtest_output_test_.cc.
References EXPECT_NONFATAL_FAILURE.
TEST | ( | ExpectNonfatalFailureTest | , |
FailsWhenThereAreTwoNonfatalFailures | |||
) |
Definition at line 633 of file gtest_output_test_.cc.
References ADD_FAILURE, and EXPECT_NONFATAL_FAILURE.
TEST | ( | ExpectNonfatalFailureTest | , |
FailsWhenThereIsOneFatalFailure | |||
) |
Definition at line 643 of file gtest_output_test_.cc.
References EXPECT_NONFATAL_FAILURE, and FAIL.
TEST | ( | ExpectNonfatalFailureTest | , |
FailsWhenStatementReturns | |||
) |
Definition at line 652 of file gtest_output_test_.cc.
References EXPECT_NONFATAL_FAILURE, and TEST().
TEST | ( | ExpectFatalFailureTest | , |
CanReferenceGlobalVariables | |||
) |
Definition at line 676 of file gtest_output_test_.cc.
References ASSERT_EQ, EXPECT_FATAL_FAILURE, and global_integer.
TEST | ( | ExpectFatalFailureTest | , |
CanReferenceLocalStaticVariables | |||
) |
Definition at line 685 of file gtest_output_test_.cc.
References ASSERT_EQ, and EXPECT_FATAL_FAILURE.
TEST | ( | ExpectFatalFailureTest | , |
SucceedsWhenThereIsOneFatalFailure | |||
) |
TEST | ( | ExpectFatalFailureTest | , |
FailsWhenThereIsNoFatalFailure | |||
) |
TEST | ( | ExpectFatalFailureTest | , |
FailsWhenThereAreTwoFatalFailures | |||
) |
Definition at line 716 of file gtest_output_test_.cc.
References EXPECT_FATAL_FAILURE, and FatalFailure().
TEST | ( | ExpectFatalFailureTest | , |
FailsWhenThereIsOneNonfatalFailure | |||
) |
Definition at line 726 of file gtest_output_test_.cc.
References ADD_FAILURE, and EXPECT_FATAL_FAILURE.
TEST | ( | ExpectFatalFailureTest | , |
FailsWhenStatementReturns | |||
) |
Definition at line 735 of file gtest_output_test_.cc.
References EXPECT_EQ, EXPECT_FATAL_FAILURE, deadlock::info(), INSTANTIATE_TEST_CASE_P(), INSTANTIATE_TYPED_TEST_CASE_P(), REGISTER_TYPED_TEST_CASE_P(), string, TEST(), TEST_P(), TYPED_TEST(), TYPED_TEST_CASE(), TYPED_TEST_CASE_P(), and TYPED_TEST_P().
TEST_F | ( | NonFatalFailureInFixtureConstructorTest | , |
FailureInConstructor | |||
) |
TEST_F | ( | FatalFailureInFixtureConstructorTest | , |
FailureInConstructor | |||
) |
TEST_F | ( | NonFatalFailureInSetUpTest | , |
FailureInSetUp | |||
) |
TEST_F | ( | FatalFailureInSetUpTest | , |
FailureInSetUp | |||
) |
TEST_F | ( | TEST_F_before_TEST_in_same_test_case | , |
DefinedUsingTEST_F | |||
) |
Definition at line 577 of file gtest_output_test_.cc.
TEST_F | ( | TEST_before_TEST_F_in_same_test_case | , |
DefinedUsingTEST_FAndShouldFail | |||
) |
Definition at line 590 of file gtest_output_test_.cc.
TEST_F | ( | ExpectFailureTest | , |
ExpectFatalFailure | |||
) |
TEST_F | ( | ExpectFailureTest | , |
ExpectNonFatalFailure | |||
) |
Definition at line 906 of file gtest_output_test_.cc.
References EXPECT_EQ, EXPECT_FATAL_FAILURE, EXPECT_NONFATAL_FAILURE, SUCCEED, and TEST_F().
TEST_F | ( | ExpectFailureTest | , |
ExpectFatalFailureOnAllThreads | |||
) |
Definition at line 963 of file gtest_output_test_.cc.
References EXPECT_FATAL_FAILURE_ON_ALL_THREADS, and SUCCEED.
TEST_F | ( | ExpectFailureTest | , |
ExpectNonFatalFailureOnAllThreads | |||
) |
Definition at line 977 of file gtest_output_test_.cc.
References EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS, and SUCCEED.
TEST_P | ( | FailingParamTest | , |
Fails | |||
) |
Definition at line 95 of file gtest_output_test_.cc.
References EXPECT_EQ, and INSTANTIATE_TEST_CASE_P().
void TestEq1 | ( | int | x | ) |
Definition at line 65 of file gtest_output_test_.cc.
References ASSERT_EQ.
void TryTestSubroutine | ( | ) |
Definition at line 71 of file gtest_output_test_.cc.
References FAIL, testing::Test::HasFatalFailure(), and TestEq1().
int global_integer = 0 |
Definition at line 594 of file gtest_output_test_.cc.
|
static |
Definition at line 105 of file gtest_output_test_.cc.
Referenced by TEST().