aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest-internal-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtest-internal-inl.h')
-rw-r--r--src/gtest-internal-inl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gtest-internal-inl.h b/src/gtest-internal-inl.h
index dfc1e958..2a90edac 100644
--- a/src/gtest-internal-inl.h
+++ b/src/gtest-internal-inl.h
@@ -548,6 +548,9 @@ class TestResult {
// Returns true iff the test fatally failed.
bool HasFatalFailure() const;
+ // Returns true iff the test has a non-fatal failure.
+ bool HasNonfatalFailure() const;
+
// Returns the elapsed time, in milliseconds.
TimeInMillis elapsed_time() const { return elapsed_time_; }
@@ -575,6 +578,9 @@ class TestResult {
// Increments the death test count, returning the new count.
int increment_death_test_count() { return ++death_test_count_; }
+ // Clears the test part results.
+ void ClearTestPartResults() { test_part_results_.Clear(); }
+
// Clears the object.
void Clear();
private:
@@ -1300,6 +1306,11 @@ inline UnitTestImpl* GetUnitTestImpl() {
return UnitTest::GetInstance()->impl();
}
+// Clears all test part results of the current test.
+inline void ClearCurrentTestPartResults() {
+ GetUnitTestImpl()->current_test_result()->ClearTestPartResults();
+}
+
// Internal helper functions for implementing the simple regular
// expression matcher.
bool IsInSet(char ch, const char* str);