Removes uses of GTEST_HAS_STD_STRING.
This commit is contained in:
@@ -1111,8 +1111,6 @@ TEST(StringTest, Constructors) {
|
||||
EXPECT_EQ('c', s7.c_str()[3]);
|
||||
}
|
||||
|
||||
#if GTEST_HAS_STD_STRING
|
||||
|
||||
TEST(StringTest, ConvertsFromStdString) {
|
||||
// An empty std::string.
|
||||
const std::string src1("");
|
||||
@@ -1152,8 +1150,6 @@ TEST(StringTest, ConvertsToStdString) {
|
||||
EXPECT_EQ(std::string("x\0y", 3), dest3);
|
||||
}
|
||||
|
||||
#endif // GTEST_HAS_STD_STRING
|
||||
|
||||
#if GTEST_HAS_GLOBAL_STRING
|
||||
|
||||
TEST(StringTest, ConvertsFromGlobalString) {
|
||||
@@ -2818,8 +2814,6 @@ TEST(IsSubstringTest, GeneratesCorrectMessageForCString) {
|
||||
"needle", "haystack").failure_message());
|
||||
}
|
||||
|
||||
#if GTEST_HAS_STD_STRING
|
||||
|
||||
// Tests that IsSubstring returns the correct result when the input
|
||||
// argument type is ::std::string.
|
||||
TEST(IsSubstringTest, ReturnsCorrectResultsForStdString) {
|
||||
@@ -2827,8 +2821,6 @@ TEST(IsSubstringTest, ReturnsCorrectResultsForStdString) {
|
||||
EXPECT_FALSE(IsSubstring("", "", "hello", std::string("world")));
|
||||
}
|
||||
|
||||
#endif // GTEST_HAS_STD_STRING
|
||||
|
||||
#if GTEST_HAS_STD_WSTRING
|
||||
// Tests that IsSubstring returns the correct result when the input
|
||||
// argument type is ::std::wstring.
|
||||
@@ -2879,8 +2871,6 @@ TEST(IsNotSubstringTest, GeneratesCorrectMessageForWideCString) {
|
||||
L"needle", L"two needles").failure_message());
|
||||
}
|
||||
|
||||
#if GTEST_HAS_STD_STRING
|
||||
|
||||
// Tests that IsNotSubstring returns the correct result when the input
|
||||
// argument type is ::std::string.
|
||||
TEST(IsNotSubstringTest, ReturnsCorrectResultsForStdString) {
|
||||
@@ -2900,8 +2890,6 @@ TEST(IsNotSubstringTest, GeneratesCorrectMessageForStdString) {
|
||||
::std::string("needle"), "two needles").failure_message());
|
||||
}
|
||||
|
||||
#endif // GTEST_HAS_STD_STRING
|
||||
|
||||
#if GTEST_HAS_STD_WSTRING
|
||||
|
||||
// Tests that IsNotSubstring returns the correct result when the input
|
||||
@@ -4575,7 +4563,6 @@ TEST(StreamableToStringTest, NullCString) {
|
||||
|
||||
// Tests using streamable values as assertion messages.
|
||||
|
||||
#if GTEST_HAS_STD_STRING
|
||||
// Tests using std::string as an assertion message.
|
||||
TEST(StreamableTest, string) {
|
||||
static const std::string str(
|
||||
@@ -4596,8 +4583,6 @@ TEST(StreamableTest, stringWithEmbeddedNUL) {
|
||||
"Here's a NUL\\0 and some more string");
|
||||
}
|
||||
|
||||
#endif // GTEST_HAS_STD_STRING
|
||||
|
||||
// Tests that we can output a NUL char.
|
||||
TEST(StreamableTest, NULChar) {
|
||||
EXPECT_FATAL_FAILURE({ // NOLINT
|
||||
@@ -4720,7 +4705,6 @@ TEST(EqAssertionTest, WideChar) {
|
||||
"Value of: wchar");
|
||||
}
|
||||
|
||||
#if GTEST_HAS_STD_STRING
|
||||
// Tests using ::std::string values in {EXPECT|ASSERT}_EQ.
|
||||
TEST(EqAssertionTest, StdString) {
|
||||
// Compares a const char* to an std::string that has identical
|
||||
@@ -4751,8 +4735,6 @@ TEST(EqAssertionTest, StdString) {
|
||||
" Actual: \"A \\0 in the middle\"");
|
||||
}
|
||||
|
||||
#endif // GTEST_HAS_STD_STRING
|
||||
|
||||
#if GTEST_HAS_STD_WSTRING
|
||||
|
||||
// Tests using ::std::wstring values in {EXPECT|ASSERT}_EQ.
|
||||
|
||||
Reference in New Issue
Block a user