summaryrefslogtreecommitdiffstats
path: root/include/gtest/gtest.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-08-31 18:21:13 (GMT)
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-08-31 18:21:13 (GMT)
commit35c39756495bea5959de5778aaaf33a94f8c1e2e (patch)
treefe8cac8d619895feaa69a4e3678f1edd9d4945c4 /include/gtest/gtest.h
parenta9f380f5c7ff75cd715c58e11885dddc54baef02 (diff)
downloadgoogletest-35c39756495bea5959de5778aaaf33a94f8c1e2e.zip
googletest-35c39756495bea5959de5778aaaf33a94f8c1e2e.tar.gz
googletest-35c39756495bea5959de5778aaaf33a94f8c1e2e.tar.bz2
Casts char to unsigned char before calling isspace() etc to avoid undefined behavior (by Zhanyong Wan); removes conditional #includes keyed on GTEST_HAS_PROTOBUF_ (by Zhanyong Wan); publishes GTEST_HAS_STREAM_REDIRECTION (by Vlad Losev); forward declares some classes properly (by Samuel Benzaquen); honors the --gtest_catch_exceptions flag (by Vlad Losev).
Diffstat (limited to 'include/gtest/gtest.h')
-rw-r--r--include/gtest/gtest.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/gtest/gtest.h b/include/gtest/gtest.h
index 3efbece..73f0578 100644
--- a/include/gtest/gtest.h
+++ b/include/gtest/gtest.h
@@ -175,6 +175,14 @@ String StreamableToString(const T& streamable) {
} // namespace internal
+// The friend relationship of some of these classes is cyclic.
+// If we don't forward declare them the compiler might confuse the classes
+// in friendship clauses with same named classes on the scope.
+class Test;
+class TestCase;
+class TestInfo;
+class UnitTest;
+
// A class for indicating whether an assertion was successful. When
// the assertion wasn't successful, the AssertionResult object
// remembers a non-empty message that describes how it failed.