Go to the documentation of this file.
38 #ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_ASSERTION_RESULT_H_
39 #define GOOGLETEST_INCLUDE_GTEST_GTEST_ASSERTION_RESULT_H_
44 #include <type_traits>
46 #include "gtest/gtest-message.h"
47 #include "gtest/internal/gtest-port.h"
134 AssertionResult(
const AssertionResult& other);
140 #if defined(_MSC_VER) && (_MSC_VER < 1910 || _MSC_VER >= 1920)
151 template <
typename T>
154 typename std::enable_if<
158 : success_(success) {}
160 #if defined(_MSC_VER) && (_MSC_VER < 1910 || _MSC_VER >= 1920)
171 operator bool()
const {
return success_; }
181 return message_.get() !=
nullptr ? message_->c_str() :
"";
187 template <
typename T>
196 ::std::ostream& (*basic_manipulator)(::std::ostream&
stream)) {
197 AppendMessage(
Message() << basic_manipulator);
205 message_->append(a_message.
GetString().c_str());
232 #endif // GOOGLETEST_INCLUDE_GTEST_GTEST_ASSERTION_RESULT_H_
AssertionResult AssertionFailure()
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)
GRPC_CUSTOM_MESSAGE Message
AssertionResult & operator<<(::std::ostream &(*basic_manipulator)(::std::ostream &stream))
#define T(upbtypeconst, upbtype, ctype, default_value)
AssertionResult & operator=(AssertionResult other)
constexpr bool operator!(uint128 val)
const char * failure_message() const
AssertionResult AssertionSuccess()
std::unique_ptr< ::std::string > message_
std::string GetString() const
AssertionResult & operator<<(const T &value)
void AppendMessage(const Message &a_message)
#define GTEST_DISABLE_MSC_WARNINGS_POP_()
AssertionResult(const T &success, typename std::enable_if< !std::is_convertible< T, AssertionResult >::value >::type *=nullptr)
const char * message() const
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:48