Removes all uses of StrStream; fixes the VC projects and simplifies them by using gtest-all.cc.
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
namespace {
|
||||
|
||||
using ::testing::Message;
|
||||
using ::testing::internal::StrStream;
|
||||
|
||||
// A helper function that turns a Message into a C string.
|
||||
const char* ToCString(const Message& msg) {
|
||||
@@ -154,9 +153,9 @@ TEST(MessageTest, GetString) {
|
||||
// Tests streaming a Message object to an ostream.
|
||||
TEST(MessageTest, StreamsToOStream) {
|
||||
Message msg("Hello");
|
||||
StrStream ss;
|
||||
::std::stringstream ss;
|
||||
ss << msg;
|
||||
EXPECT_STREQ("Hello", testing::internal::StrStreamToString(&ss).c_str());
|
||||
EXPECT_STREQ("Hello", testing::internal::StringStreamToString(&ss).c_str());
|
||||
}
|
||||
|
||||
// Tests that a Message object doesn't take up too much stack space.
|
||||
|
||||
Reference in New Issue
Block a user