Fix build issues
This commit is contained in:
parent
9deea80b83
commit
802d004bbb
@ -7155,11 +7155,21 @@ GTEST_API_ std::string AppendUserMessage(
|
|||||||
// errors presumably detectable only at run time. Since
|
// errors presumably detectable only at run time. Since
|
||||||
// std::runtime_error inherits from std::exception, many testing
|
// std::runtime_error inherits from std::exception, many testing
|
||||||
// frameworks know how to extract and print the message inside it.
|
// frameworks know how to extract and print the message inside it.
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# pragma warning(push) // Saves the current warning state.
|
||||||
|
# pragma warning(disable:4275) // Temporarily disables warning 4275.
|
||||||
|
#endif // _MSC_VER
|
||||||
|
|
||||||
class GTEST_API_ GoogleTestFailureException : public ::std::runtime_error {
|
class GTEST_API_ GoogleTestFailureException : public ::std::runtime_error {
|
||||||
public:
|
public:
|
||||||
explicit GoogleTestFailureException(const TestPartResult& failure);
|
explicit GoogleTestFailureException(const TestPartResult& failure);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# pragma warning(pop) // Restores the warning state.
|
||||||
|
#endif // _MSC_VER
|
||||||
|
|
||||||
#endif // GTEST_HAS_EXCEPTIONS
|
#endif // GTEST_HAS_EXCEPTIONS
|
||||||
|
|
||||||
// A helper class for creating scoped traces in user programs.
|
// A helper class for creating scoped traces in user programs.
|
||||||
|
@ -3284,7 +3284,7 @@ static std::string FormatWordList(const std::vector<std::string>& words) {
|
|||||||
return word_list.GetString();
|
return word_list.GetString();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ValidateTestPropertyName(const std::string& property_name,
|
static bool ValidateTestPropertyName(const std::string& property_name,
|
||||||
const std::vector<std::string>& reserved_names) {
|
const std::vector<std::string>& reserved_names) {
|
||||||
if (std::find(reserved_names.begin(), reserved_names.end(), property_name) !=
|
if (std::find(reserved_names.begin(), reserved_names.end(), property_name) !=
|
||||||
reserved_names.end()) {
|
reserved_names.end()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user