Removes all uses of StrStream; fixes the VC projects and simplifies them by using gtest-all.cc.

This commit is contained in:
zhanyong.wan
2010-09-08 05:57:37 +00:00
parent 35c3975649
commit 88e0df6247
10 changed files with 34 additions and 332 deletions

View File

@@ -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.