summaryrefslogtreecommitdiff
path: root/src/gtest-printers.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-08-09 18:19:15 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-08-09 18:19:15 +0000
commit739d30448cd8477c7c8802d41d4e0d969a9490de (patch)
treecb61bdc699ce42b01ae571b3021d7c3a66188311 /src/gtest-printers.cc
parentd5ad2ca82051c34b19af628a3c81131ca65010c2 (diff)
downloadgtest-739d30448cd8477c7c8802d41d4e0d969a9490de.tar.gz
gtest-739d30448cd8477c7c8802d41d4e0d969a9490de.tar.bz2
gtest-739d30448cd8477c7c8802d41d4e0d969a9490de.tar.xz
Makes gtest print enums as integers instead of hex dumps (by Zhanyong Wan); improves the hex dump format (by Zhanyong Wan); gets rid of class TestInfoImpl (by Zhanyong Wan); adds exception handling (by Vlad Losev).
git-svn-id: http://googletest.googlecode.com/svn/trunk@453 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'src/gtest-printers.cc')
-rw-r--r--src/gtest-printers.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gtest-printers.cc b/src/gtest-printers.cc
index 1d97b53..07a0d85 100644
--- a/src/gtest-printers.cc
+++ b/src/gtest-printers.cc
@@ -72,9 +72,10 @@ void PrintByteSegmentInObjectTo(const unsigned char* obj_bytes, size_t start,
if (i != 0) {
// Organizes the bytes into groups of 2 for easy parsing by
// human.
- if ((j % 2) == 0) {
- *os << " ";
- }
+ if ((j % 2) == 0)
+ *os << ' ';
+ else
+ *os << '-';
}
snprintf(text, sizeof(text), "%02X", obj_bytes[j]);
*os << text;