class TestResult
Defined at line 399 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
The result of a single Test. This includes a list of
TestPartResults, a list of TestProperties, a count of how many
death tests there are in the Test, and how much time it took to run
the Test.
TestResult is not copyable.
Public Methods
bool Passed ()
Returns true if and only if the test passed (i.e. no test part failed).
Defined at line 415 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
void TestResult ()
Creates an empty TestResult.
void ~TestResult ()
D'tor. Do not inherit from TestResult.
int total_part_count ()
Gets the number of all test parts. This is the sum of the number
of successful test parts and the number of failed test parts.
int test_property_count ()
Returns the number of the test properties.
bool Skipped ()
Returns true if and only if the test was skipped.
bool Failed ()
Returns true if and only if the test failed.
bool HasFatalFailure ()
Returns true if and only if the test fatally failed.
bool HasNonfatalFailure ()
Returns true if and only if the test has a non-fatal failure.
const TestPartResult & GetTestPartResult (int i)
Returns the i-th test part result among all the results. i can range from 0
to total_part_count() - 1. If i is not in that range, aborts the program.
const TestProperty & GetTestProperty (int i)
Returns the i-th test property. i can range from 0 to
test_property_count() - 1. If i is not in that range, aborts the
program.
TimeInMillis elapsed_time ()
Returns the elapsed time, in milliseconds.
Defined at line 430 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
TimeInMillis start_timestamp ()
Gets the time of the test case start, in ms from the start of the
UNIX epoch.
Defined at line 434 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
Friends
class FuchsiaDeathTest
class WindowsDeathTest
class UnitTestImpl
class TestResultAccessor
class ExecDeathTest
class DefaultGlobalTestPartResultReporter
class UnitTest
class TestSuite
class TestInfo