Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Classes | Typedefs | Functions | Variables
testing Namespace Reference

Namespaces

 internal
 
 gmock_function_mocker_test
 
 gmock_generated_actions_test
 
 gmock_matchers_test
 
 gmock_more_actions_test
 
 gmock_nice_strict_test
 
 gtest_printers_test
 

Classes

class  DefaultValue
 
class  DefaultValue< T & >
 
class  DefaultValue< void >
 
class  ActionInterface
 
class  Action
 
class  PolymorphicAction
 
class  NiceMock
 
class  NaggyMock
 
class  StrictMock
 
class  Matcher
 
class  Message
 
class  Test
 
class  TestProperty
 
class  TestResult
 
class  TestInfo
 
class  TestSuite
 
class  Environment
 
class  TestEventListener
 
class  EmptyTestEventListener
 
class  TestEventListeners
 
class  UnitTest
 
class  WithParamInterface
 
class  TestWithParam
 
class  ScopedTrace
 
struct  TestParamInfo
 
struct  PrintToStringParamName
 
class  TestInfoTest
 
class  CodeLocationForTESTF
 
class  CodeLocationForTESTP
 
class  CodeLocationForTYPEDTEST
 
class  CodeLocationForTYPEDTESTP
 
class  SetUpTestCaseTest
 
class  SetUpTestSuiteTest
 
struct  Flags
 
class  ParseFlagsTest
 
class  CurrentTestInfoTest
 

Typedefs

typedef internal::IgnoredValue Unused
 
typedef internal::TimeInMillis TimeInMillis
 
template<typename... Ts>
using Types = internal::ProxyTypeList< Ts...>
 

Functions

template<typename F >
Action< FMakeAction (ActionInterface< F > *impl)
 
template<typename Impl >
PolymorphicAction< Impl > MakePolymorphicAction (const Impl &impl)
 
template<typename... Action>
internal::DoAllAction
< typename std::decay< Action >
::type...> 
DoAll (Action &&...action)
 
template<size_t k, typename InnerAction >
internal::WithArgsAction
< typename std::decay
< InnerAction >::type, k > 
WithArg (InnerAction &&action)
 
template<size_t k, size_t... ks, typename InnerAction >
internal::WithArgsAction
< typename std::decay
< InnerAction >::type, k,
ks...> 
WithArgs (InnerAction &&action)
 
template<typename InnerAction >
internal::WithArgsAction
< typename std::decay
< InnerAction >::type > 
WithoutArgs (InnerAction &&action)
 
template<typename R >
internal::ReturnAction< RReturn (R value)
 
PolymorphicAction
< internal::ReturnNullAction
ReturnNull ()
 
PolymorphicAction
< internal::ReturnVoidAction
Return ()
 
template<typename R >
internal::ReturnRefAction< RReturnRef (R &x)
 
template<typename R , R * = nullptr>
internal::ReturnRefAction< RReturnRef (R &&)=delete
 
template<typename R >
internal::ReturnRefOfCopyAction
< R
ReturnRefOfCopy (const R &x)
 
template<typename R >
internal::ByMoveWrapper< RByMove (R x)
 
template<typename T >
internal::ReturnRoundRobinAction
< T
ReturnRoundRobin (std::vector< T > vals)
 
template<typename T >
internal::ReturnRoundRobinAction
< T
ReturnRoundRobin (std::initializer_list< T > vals)
 
internal::DoDefaultAction DoDefault ()
 
template<size_t N, typename T >
internal::SetArgumentPointeeAction
< N, T
SetArgPointee (T value)
 
template<size_t N, typename T >
internal::SetArgumentPointeeAction
< N, T
SetArgumentPointee (T value)
 
template<typename T1 , typename T2 >
PolymorphicAction
< internal::AssignAction< T1,
T2 > > 
Assign (T1 *ptr, T2 val)
 
template<typename T >
PolymorphicAction
< internal::SetErrnoAndReturnAction
< T > > 
SetErrnoAndReturn (int errval, T result)
 
template<typename FunctionImpl >
std::decay< FunctionImpl >::type Invoke (FunctionImpl &&function_impl)
 
template<class Class , typename MethodPtr >
internal::InvokeMethodAction
< Class, MethodPtr > 
Invoke (Class *obj_ptr, MethodPtr method_ptr)
 
template<typename FunctionImpl >
internal::InvokeWithoutArgsAction
< typename std::decay
< FunctionImpl >::type > 
InvokeWithoutArgs (FunctionImpl function_impl)
 
template<class Class , typename MethodPtr >
internal::InvokeMethodWithoutArgsAction
< Class, MethodPtr > 
InvokeWithoutArgs (Class *obj_ptr, MethodPtr method_ptr)
 
template<typename A >
internal::IgnoreResultAction< AIgnoreResult (const A &an_action)
 
template<typename T >
inline::std::reference_wrapper< TByRef (T &l_value)
 
template<typename T , typename... Params>
internal::ReturnNewAction< T,
typename std::decay< Params >
::type...> 
ReturnNew (Params &&...params)
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_0_VALUE_PARAMS())
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_1_VALUE_PARAMS(p0))
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_2_VALUE_PARAMS(p0, p1))
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_3_VALUE_PARAMS(p0, p1, p2))
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_4_VALUE_PARAMS(p0, p1, p2, p3))
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4))
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5))
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6))
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7))
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8))
 
 ACTION_TEMPLATE (InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9))
 
 ACTION_TEMPLATE (ReturnArg, HAS_1_TEMPLATE_PARAMS(int, k), AND_0_VALUE_PARAMS())
 
 ACTION_TEMPLATE (SaveArg, HAS_1_TEMPLATE_PARAMS(int, k), AND_1_VALUE_PARAMS(pointer))
 
 ACTION_TEMPLATE (SaveArgPointee, HAS_1_TEMPLATE_PARAMS(int, k), AND_1_VALUE_PARAMS(pointer))
 
 ACTION_TEMPLATE (SetArgReferee, HAS_1_TEMPLATE_PARAMS(int, k), AND_1_VALUE_PARAMS(value))
 
 ACTION_TEMPLATE (SetArrayArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_2_VALUE_PARAMS(first, last))
 
 ACTION_TEMPLATE (DeleteArg, HAS_1_TEMPLATE_PARAMS(int, k), AND_0_VALUE_PARAMS())
 
 ACTION_P (ReturnPointee, pointer)
 
 MATCHER (IsEmpty, negation?"isn't empty":"is empty")
 
 MATCHER (IsTrue, negation?"is false":"is true")
 
 MATCHER (IsFalse, negation?"is true":"is false")
 
 GMOCK_DECLARE_bool_ (catch_leaked_mocks)
 
 GMOCK_DECLARE_string_ (verbose)
 
 GMOCK_DECLARE_int32_ (default_mock_behavior)
 
GTEST_API_ void InitGoogleMock (int *argc, char **argv)
 
GTEST_API_ void InitGoogleMock (int *argc, wchar_t **argv)
 
GTEST_API_ void InitGoogleMock ()
 
GTEST_API_ Cardinality AtLeast (int n)
 
GTEST_API_ Cardinality AtMost (int n)
 
GTEST_API_ Cardinality AnyNumber ()
 
GTEST_API_ Cardinality Between (int min, int max)
 
GTEST_API_ Cardinality Exactly (int n)
 
 GMOCK_DEFINE_bool_ (catch_leaked_mocks, true,"true if and only if Google Mock should report leaked ""mock objects as failures.")
 
 GMOCK_DEFINE_string_ (verbose, internal::kWarningVerbosity,"Controls how verbose Google Mock's output is."" Valid values:\n"" info - prints all messages.\n"" warning - prints warnings and errors.\n"" error - prints errors only.")
 
 GMOCK_DEFINE_int32_ (default_mock_behavior, 1,"Controls the default behavior of mocks."" Valid values:\n"" 0 - by default, mocks act as NiceMocks.\n"" 1 - by default, mocks act as NaggyMocks.\n"" 2 - by default, mocks act as StrictMocks.")
 
 GTEST_DECLARE_string_ (death_test_style)
 
std::ostream & operator<< (std::ostream &os, const Message &sb)
 
template<typename T , typename IncrementT >
internal::ParamGenerator< TRange (T start, T end, IncrementT step)
 
template<typename T >
internal::ParamGenerator< TRange (T start, T end)
 
template<typename ForwardIterator >
internal::ParamGenerator
< typename
std::iterator_traits
< ForwardIterator >
::value_type > 
ValuesIn (ForwardIterator begin, ForwardIterator end)
 
template<typename T , size_t N>
internal::ParamGenerator< TValuesIn (const T(&array)[N])
 
template<class Container >
internal::ParamGenerator
< typename
Container::value_type > 
ValuesIn (const Container &container)
 
template<typename... T>
internal::ValueArray< T...> Values (T...v)
 
internal::ParamGenerator< bool > Bool ()
 
template<typename... Generator>
internal::CartesianProductHolder
< Generator...> 
Combine (const Generator &...g)
 
template<typename T >
::std::string PrintToString (const T &value)
 
EnvironmentAddGlobalTestEnvironment (Environment *env)
 
GTEST_API_ void InitGoogleTest (int *argc, char **argv)
 
GTEST_API_ void InitGoogleTest (int *argc, wchar_t **argv)
 
GTEST_API_ void InitGoogleTest ()
 
GTEST_API_ AssertionResult IsSubstring (const char *needle_expr, const char *haystack_expr, const char *needle, const char *haystack)
 
GTEST_API_ AssertionResult IsSubstring (const char *needle_expr, const char *haystack_expr, const wchar_t *needle, const wchar_t *haystack)
 
GTEST_API_ AssertionResult IsNotSubstring (const char *needle_expr, const char *haystack_expr, const char *needle, const char *haystack)
 
GTEST_API_ AssertionResult IsNotSubstring (const char *needle_expr, const char *haystack_expr, const wchar_t *needle, const wchar_t *haystack)
 
GTEST_API_ AssertionResult IsSubstring (const char *needle_expr, const char *haystack_expr, const ::std::string &needle, const ::std::string &haystack)
 
GTEST_API_ AssertionResult IsNotSubstring (const char *needle_expr, const char *haystack_expr, const ::std::string &needle, const ::std::string &haystack)
 
GTEST_API_ AssertionResult FloatLE (const char *expr1, const char *expr2, float val1, float val2)
 
GTEST_API_ AssertionResult DoubleLE (const char *expr1, const char *expr2, double val1, double val2)
 
template<typename T1 , typename T2 >
constexpr bool StaticAssertTypeEq () noexcept
 
GTEST_API_ std::string TempDir ()
 
template<int &... ExplicitParameterBarrier, typename Factory >
TestInfoRegisterTest (const char *test_suite_name, const char *test_name, const char *type_param, const char *value_param, const char *file, int line, Factory factory)
 
template<typename Pred , typename T1 >
AssertionResult AssertPred1Helper (const char *pred_text, const char *e1, Pred pred, const T1 &v1)
 
template<typename Pred , typename T1 , typename T2 >
AssertionResult AssertPred2Helper (const char *pred_text, const char *e1, const char *e2, Pred pred, const T1 &v1, const T2 &v2)
 
template<typename Pred , typename T1 , typename T2 , typename T3 >
AssertionResult AssertPred3Helper (const char *pred_text, const char *e1, const char *e2, const char *e3, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3)
 
template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 >
AssertionResult AssertPred4Helper (const char *pred_text, const char *e1, const char *e2, const char *e3, const char *e4, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4)
 
template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
AssertionResult AssertPred5Helper (const char *pred_text, const char *e1, const char *e2, const char *e3, const char *e4, const char *e5, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4, const T5 &v5)
 
 GTEST_DEFINE_string_ (death_test_style, internal::StringFromGTestEnv("death_test_style", kDefaultDeathTestStyle),"Indicates how to run a death test in a forked child process: ""\"threadsafe\" (child process re-executes the test binary ""from the beginning, running only the specific death test) or ""\"fast\" (child process runs the death test immediately ""after forking).")
 
 GTEST_DEFINE_bool_ (death_test_use_fork, internal::BoolFromGTestEnv("death_test_use_fork", false),"Instructs to use fork()/_exit() instead of clone() in death tests. ""Ignored and always uses fork() on POSIX systems where clone() is not ""implemented. Useful when running under valgrind or similar tools if ""those do not support clone(). Valgrind 3.3.1 will just fail if ""it sees an unsupported combination of clone() flags. ""It is not recommended to use this flag w/o valgrind though it will ""work in 99% of the cases. Once valgrind is fixed, this flag will ""most likely be removed.")
 
std::ostream & operator<< (std::ostream &os, const TestPartResult &result)
 
static const char * GetDefaultFilter ()
 
static bool GetDefaultFailFast ()
 
 GTEST_DEFINE_bool_ (fail_fast, internal::BoolFromGTestEnv("fail_fast", GetDefaultFailFast()),"True if and only if a test failure should stop further test execution.")
 
 GTEST_DEFINE_bool_ (also_run_disabled_tests, internal::BoolFromGTestEnv("also_run_disabled_tests", false),"Run disabled tests too, in addition to the tests normally being run.")
 
 GTEST_DEFINE_bool_ (break_on_failure, internal::BoolFromGTestEnv("break_on_failure", false),"True if and only if a failed assertion should be a debugger ""break-point.")
 
 GTEST_DEFINE_bool_ (catch_exceptions, internal::BoolFromGTestEnv("catch_exceptions", true),"True if and only if "GTEST_NAME_" should catch exceptions and treat them as test failures.")
 
 GTEST_DEFINE_string_ (color, internal::StringFromGTestEnv("color","auto"),"Whether to use colors in the output. Valid values: yes, no, ""and auto. 'auto' means to use colors if the output is ""being sent to a terminal and the TERM environment variable ""is set to a terminal type that supports colors.")
 
 GTEST_DEFINE_string_ (filter, internal::StringFromGTestEnv("filter", GetDefaultFilter()),"A colon-separated list of glob (not regex) patterns ""for filtering the tests to run, optionally followed by a ""'-' and a : separated list of negative patterns (tests to ""exclude). A test is run if it matches one of the positive ""patterns and does not match any of the negative patterns.")
 
 GTEST_DEFINE_bool_ (install_failure_signal_handler, internal::BoolFromGTestEnv("install_failure_signal_handler", false),"If true and supported on the current platform, "GTEST_NAME_" should ""install a signal handler that dumps debugging information when fatal ""signals are raised.")
 
 GTEST_DEFINE_bool_ (list_tests, false,"List all tests without running them.")
 
 GTEST_DEFINE_string_ (output, internal::StringFromGTestEnv("output", internal::OutputFlagAlsoCheckEnvVar().c_str()),"A format (defaults to \"xml\" but can be specified to be \"json\"), ""optionally followed by a colon and an output file name or directory. ""A directory is indicated by a trailing pathname separator. ""Examples: \"xml:filename.xml\", \"xml::directoryname/\". ""If a directory is specified, output files will be created ""within that directory, with file-names based on the test ""executable's name and, if necessary, made unique by adding ""digits.")
 
 GTEST_DEFINE_bool_ (brief, internal::BoolFromGTestEnv("brief", false),"True if only test failures should be displayed in text output.")
 
 GTEST_DEFINE_bool_ (print_time, internal::BoolFromGTestEnv("print_time", true),"True if and only if "GTEST_NAME_" should display elapsed time in text output.")
 
 GTEST_DEFINE_bool_ (print_utf8, internal::BoolFromGTestEnv("print_utf8", true),"True if and only if "GTEST_NAME_" prints UTF8 characters as text.")
 
 GTEST_DEFINE_int32_ (random_seed, internal::Int32FromGTestEnv("random_seed", 0),"Random number seed to use when shuffling test orders. Must be in range ""[1, 99999], or 0 to use a seed based on the current time.")
 
 GTEST_DEFINE_int32_ (repeat, internal::Int32FromGTestEnv("repeat", 1),"How many times to repeat each test. Specify a negative number ""for repeating forever. Useful for shaking out flaky tests.")
 
 GTEST_DEFINE_bool_ (show_internal_stack_frames, false,"True if and only if "GTEST_NAME_" should include internal stack frames when ""printing test failure stack traces.")
 
 GTEST_DEFINE_bool_ (shuffle, internal::BoolFromGTestEnv("shuffle", false),"True if and only if "GTEST_NAME_" should randomize tests' order on every run.")
 
 GTEST_DEFINE_int32_ (stack_trace_depth, internal::Int32FromGTestEnv("stack_trace_depth", kMaxStackTraceDepth),"The maximum number of stack frames to print when an ""assertion fails. The valid range is 0 through 100, inclusive.")
 
 GTEST_DEFINE_string_ (stream_result_to, internal::StringFromGTestEnv("stream_result_to",""),"This flag specifies the host name and the port number on which to stream ""test results. Example: \"localhost:555\". The flag is effective only on ""Linux.")
 
 GTEST_DEFINE_bool_ (throw_on_failure, internal::BoolFromGTestEnv("throw_on_failure", false),"When this flag is specified, a failed assertion will throw an exception ""if exceptions are enabled or exit the program with a non-zero code ""otherwise. For use with an external test framework.")
 
AssertionResult AssertionSuccess ()
 
AssertionResult AssertionFailure ()
 
AssertionResult AssertionFailure (const Message &message)
 
template<size_t kSize>
std::vector< std::string > ArrayAsVector (const char *const (&array)[kSize])
 
static std::vector< std::string > GetReservedAttributesForElement (const std::string &xml_element)
 
static std::vector< std::string > GetReservedOutputAttributesForElement (const std::string &xml_element)
 
static std::string FormatWordList (const std::vector< std::string > &words)
 
static bool ValidateTestPropertyName (const std::string &property_name, const std::vector< std::string > &reserved_names)
 
static bool TestPartSkipped (const TestPartResult &result)
 
static bool TestPartFatallyFailed (const TestPartResult &result)
 
static bool TestPartNonfatallyFailed (const TestPartResult &result)
 
static std::string FormatCountableNoun (int count, const char *singular_form, const char *plural_form)
 
static std::string FormatTestCount (int test_count)
 
static std::string FormatTestSuiteCount (int test_suite_count)
 
static const char * TestPartResultTypeToString (TestPartResult::Type type)
 
 TEST (GTestEnvVarTest, Dummy)
 
void PrintFlag (const char *flag)
 
 GTEST_DECLARE_string_ (filter)
 
 GTEST_DECLARE_int32_ (repeat)
 
 TEST (SuccessfulAssertionTest, SUCCEED)
 
 TEST (SuccessfulAssertionTest, EXPECT)
 
 TEST (SuccessfulAssertionTest, EXPECT_STR)
 
 TEST (SuccessfulAssertionTest, ASSERT)
 
 TEST (SuccessfulAssertionTest, ASSERT_STR)
 
 TEST_F (TestInfoTest, Names)
 
 TEST_F (TestInfoTest, result)
 
 TEST (CodeLocationForTEST, Verify)
 
 TEST_F (CodeLocationForTESTF, Verify)
 
 TEST_P (CodeLocationForTESTP, Verify)
 
 INSTANTIATE_TEST_SUITE_P (, CodeLocationForTESTP, Values(0))
 
 TYPED_TEST_SUITE (CodeLocationForTYPEDTEST, int)
 
 TYPED_TEST (CodeLocationForTYPEDTEST, Verify)
 
 TYPED_TEST_SUITE_P (CodeLocationForTYPEDTESTP)
 
 TYPED_TEST_P (CodeLocationForTYPEDTESTP, Verify)
 
 REGISTER_TYPED_TEST_SUITE_P (CodeLocationForTYPEDTESTP, Verify)
 
 INSTANTIATE_TYPED_TEST_SUITE_P (My, CodeLocationForTYPEDTESTP, int)
 
 TEST_F (SetUpTestCaseTest, Test1)
 
 TEST_F (SetUpTestCaseTest, Test2)
 
 TEST_F (SetUpTestSuiteTest, TestSetupTestSuite1)
 
 TEST_F (SetUpTestSuiteTest, TestSetupTestSuite2)
 
 TEST_F (ParseFlagsTest, Empty)
 
 TEST_F (ParseFlagsTest, NoFlag)
 
 TEST_F (ParseFlagsTest, FailFast)
 
 TEST_F (ParseFlagsTest, FilterBad)
 
 TEST_F (ParseFlagsTest, FilterEmpty)
 
 TEST_F (ParseFlagsTest, FilterNonEmpty)
 
 TEST_F (ParseFlagsTest, BreakOnFailureWithoutValue)
 
 TEST_F (ParseFlagsTest, BreakOnFailureFalse_0)
 
 TEST_F (ParseFlagsTest, BreakOnFailureFalse_f)
 
 TEST_F (ParseFlagsTest, BreakOnFailureFalse_F)
 
 TEST_F (ParseFlagsTest, BreakOnFailureTrue)
 
 TEST_F (ParseFlagsTest, CatchExceptions)
 
 TEST_F (ParseFlagsTest, DeathTestUseFork)
 
 TEST_F (ParseFlagsTest, DuplicatedFlags)
 
 TEST_F (ParseFlagsTest, UnrecognizedFlag)
 
 TEST_F (ParseFlagsTest, ListTestsFlag)
 
 TEST_F (ParseFlagsTest, ListTestsTrue)
 
 TEST_F (ParseFlagsTest, ListTestsFalse)
 
 TEST_F (ParseFlagsTest, ListTestsFalse_f)
 
 TEST_F (ParseFlagsTest, ListTestsFalse_F)
 
 TEST_F (ParseFlagsTest, OutputEmpty)
 
 TEST_F (ParseFlagsTest, OutputXml)
 
 TEST_F (ParseFlagsTest, OutputXmlFile)
 
 TEST_F (ParseFlagsTest, OutputXmlDirectory)
 
 TEST_F (ParseFlagsTest, BriefFlag)
 
 TEST_F (ParseFlagsTest, BriefFlagTrue)
 
 TEST_F (ParseFlagsTest, BriefFlagFalse)
 
 TEST_F (ParseFlagsTest, PrintTimeFlag)
 
 TEST_F (ParseFlagsTest, PrintTimeTrue)
 
 TEST_F (ParseFlagsTest, PrintTimeFalse)
 
 TEST_F (ParseFlagsTest, PrintTimeFalse_f)
 
 TEST_F (ParseFlagsTest, PrintTimeFalse_F)
 
 TEST_F (ParseFlagsTest, RandomSeed)
 
 TEST_F (ParseFlagsTest, Repeat)
 
 TEST_F (ParseFlagsTest, AlsoRunDisabledTestsFlag)
 
 TEST_F (ParseFlagsTest, AlsoRunDisabledTestsTrue)
 
 TEST_F (ParseFlagsTest, AlsoRunDisabledTestsFalse)
 
 TEST_F (ParseFlagsTest, ShuffleWithoutValue)
 
 TEST_F (ParseFlagsTest, ShuffleFalse_0)
 
 TEST_F (ParseFlagsTest, ShuffleTrue)
 
 TEST_F (ParseFlagsTest, StackTraceDepth)
 
 TEST_F (ParseFlagsTest, StreamResultTo)
 
 TEST_F (ParseFlagsTest, ThrowOnFailureWithoutValue)
 
 TEST_F (ParseFlagsTest, ThrowOnFailureFalse_0)
 
 TEST_F (ParseFlagsTest, ThrowOnFailureTrue)
 
 TEST_F (CurrentTestInfoTest, WorksForFirstTestInATestSuite)
 
 TEST_F (CurrentTestInfoTest, WorksForSecondTestInATestSuite)
 

Variables

class GTEST_API_
testing::ScopedTrace 
GTEST_ATTRIBUTE_UNUSED_
 
static const char kDefaultDeathTestStyle [] = GTEST_DEFAULT_DEATH_TEST_STYLE
 
static const char kDisableTestFilter [] = "DISABLED_*:*/DISABLED_*"
 
static const char kDeathTestSuiteFilter [] = "*DeathTest:*DeathTest/*"
 
static const char kUniversalFilter [] = "*"
 
static const char kDefaultOutputFormat [] = "xml"
 
static const char kDefaultOutputFile [] = "test_detail"
 
static const char kTestShardIndex [] = "GTEST_SHARD_INDEX"
 
static const char kTestTotalShards [] = "GTEST_TOTAL_SHARDS"
 
static const char kTestShardStatusFile [] = "GTEST_SHARD_STATUS_FILE"
 
static const char *const kReservedTestSuitesAttributes []
 
static const char *const kReservedTestSuiteAttributes []
 
static const char *const kReservedTestCaseAttributes []
 
static const char *const kReservedOutputTestCaseAttributes []
 

Typedef Documentation

Definition at line 1093 of file gmock-actions.h.

Definition at line 527 of file gtest.h.

template<typename... Ts>
using testing::Types = typedef internal::ProxyTypeList<Ts...>

Definition at line 183 of file gtest-type-util.h.

Function Documentation

template<typename F >
Action<F> testing::MakeAction ( ActionInterface< F > *  impl)

Definition at line 582 of file gmock-actions.h.

template<typename Impl >
PolymorphicAction<Impl> testing::MakePolymorphicAction ( const Impl &  impl)
inline

Definition at line 594 of file gmock-actions.h.

template<typename... Action>
internal::DoAllAction<typename std::decay<Action>::type...> testing::DoAll ( Action &&...  action)

Definition at line 1098 of file gmock-actions.h.

template<size_t k, typename InnerAction >
internal::WithArgsAction<typename std::decay<InnerAction>::type, k> testing::WithArg ( InnerAction &&  action)

Definition at line 1110 of file gmock-actions.h.

template<size_t k, size_t... ks, typename InnerAction >
internal::WithArgsAction<typename std::decay<InnerAction>::type, k, ks...> testing::WithArgs ( InnerAction &&  action)

Definition at line 1120 of file gmock-actions.h.

template<typename InnerAction >
internal::WithArgsAction<typename std::decay<InnerAction>::type> testing::WithoutArgs ( InnerAction &&  action)

Definition at line 1130 of file gmock-actions.h.

template<typename R >
internal::ReturnAction<R> testing::Return ( R  value)

Definition at line 1138 of file gmock-actions.h.

PolymorphicAction<internal::ReturnNullAction> testing::ReturnNull ( )
inline

Definition at line 1143 of file gmock-actions.h.

PolymorphicAction<internal::ReturnVoidAction> testing::Return ( )
inline

Definition at line 1148 of file gmock-actions.h.

template<typename R >
internal::ReturnRefAction<R> testing::ReturnRef ( R x)
inline

Definition at line 1154 of file gmock-actions.h.

template<typename R , R * = nullptr>
internal::ReturnRefAction<R> testing::ReturnRef ( R &&  )
delete
template<typename R >
internal::ReturnRefOfCopyAction<R> testing::ReturnRefOfCopy ( const R x)
inline

Definition at line 1166 of file gmock-actions.h.

template<typename R >
internal::ByMoveWrapper<R> testing::ByMove ( R  x)

Definition at line 1175 of file gmock-actions.h.

template<typename T >
internal::ReturnRoundRobinAction<T> testing::ReturnRoundRobin ( std::vector< T vals)

Definition at line 1183 of file gmock-actions.h.

template<typename T >
internal::ReturnRoundRobinAction<T> testing::ReturnRoundRobin ( std::initializer_list< T vals)

Definition at line 1191 of file gmock-actions.h.

internal::DoDefaultAction testing::DoDefault ( )
inline

Definition at line 1197 of file gmock-actions.h.

template<size_t N, typename T >
internal::SetArgumentPointeeAction<N, T> testing::SetArgPointee ( T  value)

Definition at line 1204 of file gmock-actions.h.

template<size_t N, typename T >
internal::SetArgumentPointeeAction<N, T> testing::SetArgumentPointee ( T  value)

Definition at line 1210 of file gmock-actions.h.

template<typename T1 , typename T2 >
PolymorphicAction<internal::AssignAction<T1, T2> > testing::Assign ( T1 ptr,
T2  val 
)

Definition at line 1216 of file gmock-actions.h.

template<typename T >
PolymorphicAction<internal::SetErrnoAndReturnAction<T> > testing::SetErrnoAndReturn ( int  errval,
T  result 
)

Definition at line 1225 of file gmock-actions.h.

template<typename FunctionImpl >
std::decay<FunctionImpl>::type testing::Invoke ( FunctionImpl &&  function_impl)

Definition at line 1239 of file gmock-actions.h.

template<class Class , typename MethodPtr >
internal::InvokeMethodAction<Class, MethodPtr> testing::Invoke ( Class *  obj_ptr,
MethodPtr  method_ptr 
)

Definition at line 1246 of file gmock-actions.h.

template<typename FunctionImpl >
internal::InvokeWithoutArgsAction<typename std::decay<FunctionImpl>::type> testing::InvokeWithoutArgs ( FunctionImpl  function_impl)

Definition at line 1254 of file gmock-actions.h.

template<class Class , typename MethodPtr >
internal::InvokeMethodWithoutArgsAction<Class, MethodPtr> testing::InvokeWithoutArgs ( Class *  obj_ptr,
MethodPtr  method_ptr 
)

Definition at line 1261 of file gmock-actions.h.

template<typename A >
internal::IgnoreResultAction<A> testing::IgnoreResult ( const A an_action)
inline

Definition at line 1270 of file gmock-actions.h.

template<typename T >
inline ::std::reference_wrapper<T> testing::ByRef ( T l_value)

Definition at line 1285 of file gmock-actions.h.

template<typename T , typename... Params>
internal::ReturnNewAction<T, typename std::decay<Params>::type...> testing::ReturnNew ( Params &&...  params)

Definition at line 1309 of file gmock-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_0_VALUE_PARAMS()   
)

Definition at line 511 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_1_VALUE_PARAMS(p0)   
)

Definition at line 519 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_2_VALUE_PARAMS(p0, p1)   
)

Definition at line 527 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_3_VALUE_PARAMS(p0, p1, p2)   
)

Definition at line 535 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_4_VALUE_PARAMS(p0, p1, p2, p3)   
)

Definition at line 543 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)   
)

Definition at line 551 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)   
)

Definition at line 559 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)   
)

Definition at line 567 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)   
)

Definition at line 575 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8)   
)

Definition at line 583 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( InvokeArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)   
)

Definition at line 592 of file gmock-generated-actions.h.

testing::ACTION_TEMPLATE ( ReturnArg  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_0_VALUE_PARAMS()   
)

Definition at line 77 of file gmock-more-actions.h.

testing::ACTION_TEMPLATE ( SaveArg  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_1_VALUE_PARAMS(pointer)   
)

Definition at line 85 of file gmock-more-actions.h.

testing::ACTION_TEMPLATE ( SaveArgPointee  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_1_VALUE_PARAMS(pointer)   
)

Definition at line 93 of file gmock-more-actions.h.

testing::ACTION_TEMPLATE ( SetArgReferee  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_1_VALUE_PARAMS(value  
)

Definition at line 101 of file gmock-more-actions.h.

testing::ACTION_TEMPLATE ( SetArrayArgument  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_2_VALUE_PARAMS(first, last)   
)

Definition at line 118 of file gmock-more-actions.h.

testing::ACTION_TEMPLATE ( DeleteArg  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_0_VALUE_PARAMS()   
)

Definition at line 131 of file gmock-more-actions.h.

testing::ACTION_P ( ReturnPointee  ,
pointer   
)

Definition at line 138 of file gmock-more-actions.h.

testing::MATCHER ( IsEmpty  ,
negation?"isn't empty":"is empty"   
)

Definition at line 61 of file gmock-more-matchers.h.

testing::MATCHER ( IsTrue  ,
negation?"is false":"is true  
)

Definition at line 73 of file gmock-more-matchers.h.

testing::MATCHER ( IsFalse  ,
negation?"is true":"is false  
)

Definition at line 81 of file gmock-more-matchers.h.

testing::GMOCK_DECLARE_bool_ ( catch_leaked_mocks  )
testing::GMOCK_DECLARE_string_ ( verbose  )
testing::GMOCK_DECLARE_int32_ ( default_mock_behavior  )
GTEST_API_ void testing::InitGoogleMock ( int *  argc,
char **  argv 
)

Definition at line 191 of file gmock.cc.

GTEST_API_ void testing::InitGoogleMock ( int *  argc,
wchar_t **  argv 
)

Definition at line 197 of file gmock.cc.

GTEST_API_ void testing::InitGoogleMock ( )

Definition at line 203 of file gmock.cc.

GTEST_API_ Cardinality testing::AtLeast ( int  n)

Definition at line 139 of file gmock-cardinalities.cc.

GTEST_API_ Cardinality testing::AtMost ( int  n)

Definition at line 142 of file gmock-cardinalities.cc.

GTEST_API_ Cardinality testing::AnyNumber ( )

Definition at line 145 of file gmock-cardinalities.cc.

GTEST_API_ Cardinality testing::Between ( int  min,
int  max 
)

Definition at line 148 of file gmock-cardinalities.cc.

GTEST_API_ Cardinality testing::Exactly ( int  n)

Definition at line 153 of file gmock-cardinalities.cc.

testing::GMOCK_DEFINE_bool_ ( catch_leaked_mocks  ,
true  ,
"true if and only if Google Mock should report leaked ""mock objects as failures."   
)
testing::GMOCK_DEFINE_string_ ( verbose  ,
internal::kWarningVerbosity  ,
"Controls how verbose Google Mock's output is."" Valid values:\n"" info - prints all messages.\n"" warning - prints warnings and errors.\n"" error - prints errors only."   
)
testing::GMOCK_DEFINE_int32_ ( default_mock_behavior  ,
,
"Controls the default behavior of mocks."" Valid values:\n"" 0 - by  default,
mocks act as NiceMocks.\n""1-by  default,
mocks act as NaggyMocks.\n""2-by  default,
mocks act as StrictMocks."   
)
testing::GTEST_DECLARE_string_ ( death_test_style  )
std::ostream& testing::operator<< ( std::ostream &  os,
const Message &  sb 
)
inline

Definition at line 199 of file gtest-message.h.

template<typename T , typename IncrementT >
internal::ParamGenerator<T> testing::Range ( T  start,
T  end,
IncrementT  step 
)

Definition at line 229 of file gtest-param-test.h.

template<typename T >
internal::ParamGenerator<T> testing::Range ( T  start,
T  end 
)

Definition at line 235 of file gtest-param-test.h.

template<typename ForwardIterator >
internal::ParamGenerator< typename std::iterator_traits<ForwardIterator>::value_type> testing::ValuesIn ( ForwardIterator  begin,
ForwardIterator  end 
)

Definition at line 297 of file gtest-param-test.h.

template<typename T , size_t N>
internal::ParamGenerator<T> testing::ValuesIn ( const T(&)  array[N])

Definition at line 304 of file gtest-param-test.h.

template<class Container >
internal::ParamGenerator< typename Container::value_type > testing::ValuesIn ( const Container &  container)

Definition at line 309 of file gtest-param-test.h.

template<typename... T>
internal::ValueArray<T...> testing::Values ( T...  v)

Definition at line 335 of file gtest-param-test.h.

internal::ParamGenerator<bool> testing::Bool ( )
inline

Definition at line 359 of file gtest-param-test.h.

template<typename... Generator>
internal::CartesianProductHolder<Generator...> testing::Combine ( const Generator &...  g)

Definition at line 410 of file gtest-param-test.h.

template<typename T >
::std::string testing::PrintToString ( const T value)

Definition at line 901 of file gtest-printers.h.

Environment* testing::AddGlobalTestEnvironment ( Environment *  env)
inline

Definition at line 1492 of file gtest.h.

void testing::InitGoogleTest ( int *  argc,
char **  argv 
)

Definition at line 6527 of file gtest.cc.

void testing::InitGoogleTest ( int *  argc,
wchar_t **  argv 
)

Definition at line 6537 of file gtest.cc.

void testing::InitGoogleTest ( )

Definition at line 6547 of file gtest.cc.

AssertionResult testing::IsSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const char *  needle,
const char *  haystack 
)

Definition at line 1789 of file gtest.cc.

AssertionResult testing::IsSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const wchar_t *  needle,
const wchar_t *  haystack 
)

Definition at line 1795 of file gtest.cc.

AssertionResult testing::IsNotSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const char *  needle,
const char *  haystack 
)

Definition at line 1801 of file gtest.cc.

AssertionResult testing::IsNotSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const wchar_t *  needle,
const wchar_t *  haystack 
)

Definition at line 1807 of file gtest.cc.

AssertionResult testing::IsSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const ::std::string &  needle,
const ::std::string &  haystack 
)

Definition at line 1813 of file gtest.cc.

AssertionResult testing::IsNotSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const ::std::string &  needle,
const ::std::string &  haystack 
)

Definition at line 1819 of file gtest.cc.

AssertionResult testing::FloatLE ( const char *  expr1,
const char *  expr2,
float  val1,
float  val2 
)

Definition at line 1606 of file gtest.cc.

AssertionResult testing::DoubleLE ( const char *  expr1,
const char *  expr2,
double  val1,
double  val2 
)

Definition at line 1613 of file gtest.cc.

template<typename T1 , typename T2 >
constexpr bool testing::StaticAssertTypeEq ( )
noexcept

Definition at line 2311 of file gtest.h.

std::string testing::TempDir ( )

Definition at line 6561 of file gtest.cc.

template<int &... ExplicitParameterBarrier, typename Factory >
TestInfo* testing::RegisterTest ( const char *  test_suite_name,
const char *  test_name,
const char *  type_param,
const char *  value_param,
const char *  file,
int  line,
Factory  factory 
)

Definition at line 2450 of file gtest.h.

template<typename Pred , typename T1 >
AssertionResult testing::AssertPred1Helper ( const char *  pred_text,
const char *  e1,
Pred  pred,
const T1 v1 
)

Definition at line 87 of file gtest_pred_impl.h.

template<typename Pred , typename T1 , typename T2 >
AssertionResult testing::AssertPred2Helper ( const char *  pred_text,
const char *  e1,
const char *  e2,
Pred  pred,
const T1 v1,
const T2 v2 
)

Definition at line 130 of file gtest_pred_impl.h.

template<typename Pred , typename T1 , typename T2 , typename T3 >
AssertionResult testing::AssertPred3Helper ( const char *  pred_text,
const char *  e1,
const char *  e2,
const char *  e3,
Pred  pred,
const T1 v1,
const T2 v2,
const T3 &  v3 
)

Definition at line 180 of file gtest_pred_impl.h.

template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 >
AssertionResult testing::AssertPred4Helper ( const char *  pred_text,
const char *  e1,
const char *  e2,
const char *  e3,
const char *  e4,
Pred  pred,
const T1 v1,
const T2 v2,
const T3 &  v3,
const T4 &  v4 
)

Definition at line 236 of file gtest_pred_impl.h.

template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
AssertionResult testing::AssertPred5Helper ( const char *  pred_text,
const char *  e1,
const char *  e2,
const char *  e3,
const char *  e4,
const char *  e5,
Pred  pred,
const T1 v1,
const T2 v2,
const T3 &  v3,
const T4 &  v4,
const T5 &  v5 
)

Definition at line 298 of file gtest_pred_impl.h.

testing::GTEST_DEFINE_string_ ( death_test_style  ,
internal::  StringFromGTestEnv"death_test_style", kDefaultDeathTestStyle,
"Indicates how to run a death test in a forked child process: ""\"threadsafe\" (child process re-executes the test binary ""from the beginning, running only the specific death test) or ""\"fast\" (child process runs the death test immediately ""after forking)."   
)
testing::GTEST_DEFINE_bool_ ( death_test_use_fork  ,
internal::  BoolFromGTestEnv"death_test_use_fork", false,
"Instructs to use fork()/_exit() instead of clone() in death tests. ""Ignored and always uses fork() on POSIX systems where clone() is not ""implemented. Useful when running under valgrind or similar tools if ""those do not support clone(). Valgrind 3.3.1 will just fail if ""it sees an unsupported combination of clone() flags. ""It is not recommended to use this flag w/o valgrind though it will ""work in 99% of the cases. Once valgrind is  fixed,
this flag will""most likely be removed."   
)
std::ostream& testing::operator<< ( std::ostream &  os,
const TestPartResult &  result 
)

Definition at line 50 of file gtest-test-part.cc.

static const char* testing::GetDefaultFilter ( )
static

Definition at line 206 of file gtest.cc.

static bool testing::GetDefaultFailFast ( )
static

Definition at line 217 of file gtest.cc.

testing::GTEST_DEFINE_bool_ ( fail_fast  ,
internal::  BoolFromGTestEnv"fail_fast", GetDefaultFailFast(),
"True if and only if a test failure should stop further test execution."   
)
testing::GTEST_DEFINE_bool_ ( also_run_disabled_tests  ,
internal::  BoolFromGTestEnv"also_run_disabled_tests", false,
"Run disabled tests  too,
in addition to the tests normally being run."   
)
testing::GTEST_DEFINE_bool_ ( break_on_failure  ,
internal::  BoolFromGTestEnv"break_on_failure", false,
"True if and only if a failed assertion should be a debugger ""break-point."   
)
testing::GTEST_DEFINE_bool_ ( catch_exceptions  ,
internal::  BoolFromGTestEnv"catch_exceptions", true,
"True if and only if "GTEST_NAME_" should catch exceptions and treat them as test failures."   
)
testing::GTEST_DEFINE_string_ ( color  ,
internal::  StringFromGTestEnv"color","auto",
"Whether to use colors in the output. Valid values:  yes,
no  ,
""and auto. 'auto'means to use colors if the output is""being sent to a terminal and the TERM environment variable""is set to a terminal type that supports colors."   
)
testing::GTEST_DEFINE_string_ ( filter  ,
internal::  StringFromGTestEnv"filter", GetDefaultFilter(),
"A colon-separated list of glob (not regex) patterns ""for filtering the tests to  run,
optionally followed by a""'-'and a:separated list of negative patterns(tests to""exclude).A test is run if it matches one of the positive""patterns and does not match any of the negative patterns."   
)
testing::GTEST_DEFINE_bool_ ( install_failure_signal_handler  ,
internal::  BoolFromGTestEnv"install_failure_signal_handler", false,
"If true and supported on the current  platform,
"GTEST_NAME_"should""install a signal handler that dumps debugging information when fatal""signals are raised."   
)
testing::GTEST_DEFINE_bool_ ( list_tests  ,
false  ,
"List all tests without running them."   
)
testing::GTEST_DEFINE_string_ ( output  ,
internal::  StringFromGTestEnv"output", internal::OutputFlagAlsoCheckEnvVar().c_str(),
"A format   defaults to \"xml\" but can be specified to be \"json\",
""optionally followed by a colon and an output file name or directory.""A directory is indicated by a trailing pathname separator.""Examples:\"xml:filename.xml\"  ,
\"xml::directoryname/\". ""If a directory is  specified,
output files will be created""within that  directory,
with file-names based on the test""executable's name  and,
if  necessary,
made unique by adding""digits."   
)
testing::GTEST_DEFINE_bool_ ( brief  ,
internal::  BoolFromGTestEnv"brief", false,
"True if only test failures should be displayed in text output."   
)
testing::GTEST_DEFINE_bool_ ( print_time  ,
internal::  BoolFromGTestEnv"print_time", true,
"True if and only if "GTEST_NAME_" should display elapsed time in text output."   
)
testing::GTEST_DEFINE_bool_ ( print_utf8  ,
internal::  BoolFromGTestEnv"print_utf8", true,
"True if and only if "GTEST_NAME_" prints UTF8 characters as text."   
)
testing::GTEST_DEFINE_int32_ ( random_seed  ,
internal::  Int32FromGTestEnv"random_seed", 0,
"Random number seed to use when shuffling test orders. Must be in range ""  [1, 99999],
or 0 to use a seed based on the current time."   
)
testing::GTEST_DEFINE_int32_ ( repeat  ,
internal::  Int32FromGTestEnv"repeat", 1,
"How many times to repeat each test. Specify a negative number ""for repeating forever. Useful for shaking out flaky tests."   
)
testing::GTEST_DEFINE_bool_ ( show_internal_stack_frames  ,
false  ,
"True if and only if "GTEST_NAME_" should include internal stack frames when ""printing test failure stack traces."   
)
testing::GTEST_DEFINE_bool_ ( shuffle  ,
internal::  BoolFromGTestEnv"shuffle", false,
"True if and only if "GTEST_NAME_" should randomize tests' order on every run."   
)
testing::GTEST_DEFINE_int32_ ( stack_trace_depth  ,
internal::  Int32FromGTestEnv"stack_trace_depth", kMaxStackTraceDepth,
"The maximum number of stack frames to print when an ""assertion fails. The valid range is 0 through  100,
inclusive."   
)
testing::GTEST_DEFINE_string_ ( stream_result_to  ,
internal::  StringFromGTestEnv"stream_result_to","",
"This flag specifies the host name and the port number on which to stream ""test results. Example: \"localhost:555\". The flag is effective only on ""Linux."   
)
testing::GTEST_DEFINE_bool_ ( throw_on_failure  ,
internal::  BoolFromGTestEnv"throw_on_failure", false,
"When this flag is  specified,
a failed assertion will throw an exception""if exceptions are enabled or exit the program with a non-zero code""otherwise.For use with an external test framework."   
)
AssertionResult testing::AssertionSuccess ( )

Definition at line 1195 of file gtest.cc.

AssertionResult testing::AssertionFailure ( )

Definition at line 1200 of file gtest.cc.

AssertionResult testing::AssertionFailure ( const Message &  message)

Definition at line 1206 of file gtest.cc.

template<size_t kSize>
std::vector<std::string> testing::ArrayAsVector ( const char *const (&)  array[kSize])

Definition at line 2293 of file gtest.cc.

static std::vector<std::string> testing::GetReservedAttributesForElement ( const std::string &  xml_element)
static

Definition at line 2297 of file gtest.cc.

static std::vector<std::string> testing::GetReservedOutputAttributesForElement ( const std::string &  xml_element)
static

Definition at line 2313 of file gtest.cc.

static std::string testing::FormatWordList ( const std::vector< std::string > &  words)
static

Definition at line 2328 of file gtest.cc.

static bool testing::ValidateTestPropertyName ( const std::string &  property_name,
const std::vector< std::string > &  reserved_names 
)
static

Definition at line 2342 of file gtest.cc.

static bool testing::TestPartSkipped ( const TestPartResult &  result)
static

Definition at line 2372 of file gtest.cc.

static bool testing::TestPartFatallyFailed ( const TestPartResult &  result)
static

Definition at line 2391 of file gtest.cc.

static bool testing::TestPartNonfatallyFailed ( const TestPartResult &  result)
static

Definition at line 2401 of file gtest.cc.

static std::string testing::FormatCountableNoun ( int  count,
const char *  singular_form,
const char *  plural_form 
)
static

Definition at line 3097 of file gtest.cc.

static std::string testing::FormatTestCount ( int  test_count)
static

Definition at line 3105 of file gtest.cc.

static std::string testing::FormatTestSuiteCount ( int  test_suite_count)
static

Definition at line 3110 of file gtest.cc.

static const char* testing::TestPartResultTypeToString ( TestPartResult::Type  type)
static

Definition at line 3118 of file gtest.cc.

testing::TEST ( GTestEnvVarTest  ,
Dummy   
)

Definition at line 46 of file googletest-env-var-test_.cc.

void testing::PrintFlag ( const char *  flag)

Definition at line 49 of file googletest-env-var-test_.cc.

testing::GTEST_DECLARE_string_ ( filter  )
testing::GTEST_DECLARE_int32_ ( repeat  )
testing::TEST ( SuccessfulAssertionTest  ,
SUCCEED   
)

Definition at line 4267 of file gtest_unittest.cc.

testing::TEST ( SuccessfulAssertionTest  ,
EXPECT   
)

Definition at line 4274 of file gtest_unittest.cc.

testing::TEST ( SuccessfulAssertionTest  ,
EXPECT_STR   
)

Definition at line 4280 of file gtest_unittest.cc.

testing::TEST ( SuccessfulAssertionTest  ,
ASSERT   
)

Definition at line 4286 of file gtest_unittest.cc.

testing::TEST ( SuccessfulAssertionTest  ,
ASSERT_STR   
)

Definition at line 4292 of file gtest_unittest.cc.

testing::TEST_F ( TestInfoTest  ,
Names   
)

Definition at line 5339 of file gtest_unittest.cc.

testing::TEST_F ( TestInfoTest  ,
result   
)

Definition at line 5347 of file gtest_unittest.cc.

testing::TEST ( CodeLocationForTEST  ,
Verify   
)

Definition at line 5364 of file gtest_unittest.cc.

testing::TEST_F ( CodeLocationForTESTF  ,
Verify   
)

Definition at line 5371 of file gtest_unittest.cc.

testing::TEST_P ( CodeLocationForTESTP  ,
Verify   
)

Definition at line 5378 of file gtest_unittest.cc.

testing::INSTANTIATE_TEST_SUITE_P ( CodeLocationForTESTP  ,
Values(0)   
)
testing::TYPED_TEST_SUITE ( CodeLocationForTYPEDTEST  ,
int   
)
testing::TYPED_TEST ( CodeLocationForTYPEDTEST  ,
Verify   
)

Definition at line 5390 of file gtest_unittest.cc.

testing::TYPED_TEST_SUITE_P ( CodeLocationForTYPEDTESTP  )
testing::TYPED_TEST_P ( CodeLocationForTYPEDTESTP  ,
Verify   
)

Definition at line 5400 of file gtest_unittest.cc.

testing::REGISTER_TYPED_TEST_SUITE_P ( CodeLocationForTYPEDTESTP  ,
Verify   
)
testing::INSTANTIATE_TYPED_TEST_SUITE_P ( My  ,
CodeLocationForTYPEDTESTP  ,
int   
)
testing::TEST_F ( SetUpTestCaseTest  ,
Test1   
)

Definition at line 5465 of file gtest_unittest.cc.

testing::TEST_F ( SetUpTestCaseTest  ,
Test2   
)

Definition at line 5468 of file gtest_unittest.cc.

testing::TEST_F ( SetUpTestSuiteTest  ,
TestSetupTestSuite1   
)

Definition at line 5526 of file gtest_unittest.cc.

testing::TEST_F ( SetUpTestSuiteTest  ,
TestSetupTestSuite2   
)

Definition at line 5531 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
Empty   
)

Definition at line 5819 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
NoFlag   
)

Definition at line 5828 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
FailFast   
)

Definition at line 5837 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
FilterBad   
)

Definition at line 5846 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
FilterEmpty   
)

Definition at line 5855 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
FilterNonEmpty   
)

Definition at line 5864 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
BreakOnFailureWithoutValue   
)

Definition at line 5873 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
BreakOnFailureFalse_0   
)

Definition at line 5882 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
BreakOnFailureFalse_f   
)

Definition at line 5891 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
BreakOnFailureFalse_F   
)

Definition at line 5900 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
BreakOnFailureTrue   
)

Definition at line 5910 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
CatchExceptions   
)

Definition at line 5919 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
DeathTestUseFork   
)

Definition at line 5928 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
DuplicatedFlags   
)

Definition at line 5938 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
UnrecognizedFlag   
)

Definition at line 5948 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ListTestsFlag   
)

Definition at line 5962 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ListTestsTrue   
)

Definition at line 5971 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ListTestsFalse   
)

Definition at line 5980 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ListTestsFalse_f   
)

Definition at line 5989 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ListTestsFalse_F   
)

Definition at line 5998 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
OutputEmpty   
)

Definition at line 6007 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
OutputXml   
)

Definition at line 6016 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
OutputXmlFile   
)

Definition at line 6025 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
OutputXmlDirectory   
)

Definition at line 6034 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
BriefFlag   
)

Definition at line 6045 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
BriefFlagTrue   
)

Definition at line 6054 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
BriefFlagFalse   
)

Definition at line 6063 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
PrintTimeFlag   
)

Definition at line 6072 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
PrintTimeTrue   
)

Definition at line 6081 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
PrintTimeFalse   
)

Definition at line 6090 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
PrintTimeFalse_f   
)

Definition at line 6099 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
PrintTimeFalse_F   
)

Definition at line 6108 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
RandomSeed   
)

Definition at line 6117 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
Repeat   
)

Definition at line 6126 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
AlsoRunDisabledTestsFlag   
)

Definition at line 6135 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
AlsoRunDisabledTestsTrue   
)

Definition at line 6145 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
AlsoRunDisabledTestsFalse   
)

Definition at line 6156 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ShuffleWithoutValue   
)

Definition at line 6167 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ShuffleFalse_0   
)

Definition at line 6176 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ShuffleTrue   
)

Definition at line 6185 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
StackTraceDepth   
)

Definition at line 6194 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
StreamResultTo   
)

Definition at line 6202 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ThrowOnFailureWithoutValue   
)

Definition at line 6213 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ThrowOnFailureFalse_0   
)

Definition at line 6222 of file gtest_unittest.cc.

testing::TEST_F ( ParseFlagsTest  ,
ThrowOnFailureTrue   
)

Definition at line 6232 of file gtest_unittest.cc.

testing::TEST_F ( CurrentTestInfoTest  ,
WorksForFirstTestInATestSuite   
)

Definition at line 6372 of file gtest_unittest.cc.

testing::TEST_F ( CurrentTestInfoTest  ,
WorksForSecondTestInATestSuite   
)

Definition at line 6387 of file gtest_unittest.cc.

Variable Documentation

class GTEST_API_ testing::ScopedTrace testing::GTEST_ATTRIBUTE_UNUSED_
const char testing::kDefaultDeathTestStyle[] = GTEST_DEFAULT_DEATH_TEST_STYLE
static

Definition at line 96 of file gtest-death-test.cc.

const char testing::kDisableTestFilter[] = "DISABLED_*:*/DISABLED_*"
static

Definition at line 155 of file gtest.cc.

const char testing::kDeathTestSuiteFilter[] = "*DeathTest:*DeathTest/*"
static

Definition at line 160 of file gtest.cc.

const char testing::kUniversalFilter[] = "*"
static

Definition at line 163 of file gtest.cc.

const char testing::kDefaultOutputFormat[] = "xml"
static

Definition at line 166 of file gtest.cc.

const char testing::kDefaultOutputFile[] = "test_detail"
static

Definition at line 168 of file gtest.cc.

const char testing::kTestShardIndex[] = "GTEST_SHARD_INDEX"
static

Definition at line 171 of file gtest.cc.

const char testing::kTestTotalShards[] = "GTEST_TOTAL_SHARDS"
static

Definition at line 173 of file gtest.cc.

const char testing::kTestShardStatusFile[] = "GTEST_SHARD_STATUS_FILE"
static

Definition at line 175 of file gtest.cc.

const char* const testing::kReservedTestSuitesAttributes[]
static
Initial value:
= {
"disabled",
"errors",
"failures",
"name",
"random_seed",
"tests",
"time",
"timestamp"
}

Definition at line 2264 of file gtest.cc.

const char* const testing::kReservedTestSuiteAttributes[]
static
Initial value:
= {
"disabled", "errors", "failures", "name",
"tests", "time", "timestamp", "skipped"}

Definition at line 2277 of file gtest.cc.

const char* const testing::kReservedTestCaseAttributes[]
static
Initial value:
= {
"classname", "name", "status", "time", "type_param",
"value_param", "file", "line"}

Definition at line 2282 of file gtest.cc.

const char* const testing::kReservedOutputTestCaseAttributes[]
static
Initial value:
= {
"classname", "name", "status", "time", "type_param",
"value_param", "file", "line", "result", "timestamp"}

Definition at line 2288 of file gtest.cc.