summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-07-23 06:30:32 (GMT)
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-07-23 06:30:32 (GMT)
commit18c31d64e120919e8e04df3035234b9afe8eb6d9 (patch)
tree0f7bd72d7e8210d66e93fbaee8883ca4b7c9e2f9 /src
parent16b9431ae01d83de80db7ef3e411d9771ee845e4 (diff)
downloadgoogletest-18c31d64e120919e8e04df3035234b9afe8eb6d9.zip
googletest-18c31d64e120919e8e04df3035234b9afe8eb6d9.tar.gz
googletest-18c31d64e120919e8e04df3035234b9afe8eb6d9.tar.bz2
Makes gtest compilable on Win CE.
Diffstat (limited to 'src')
-rw-r--r--src/gtest.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gtest.cc b/src/gtest.cc
index 69d2517..a767d19 100644
--- a/src/gtest.cc
+++ b/src/gtest.cc
@@ -2553,11 +2553,16 @@ static void PrintTestPartResult(const TestPartResult& test_part_result) {
PrintTestPartResultToString(test_part_result);
printf("%s\n", result.c_str());
fflush(stdout);
-#if GTEST_OS_WINDOWS
// If the test program runs in Visual Studio or a debugger, the
- // following states add the test part result message to the Output
+ // following statements add the test part result message to the Output
// window such that the user can double-click on it to jump to the
// corresponding source code location; otherwise they do nothing.
+#ifdef _WIN32_WCE
+ // Windows Mobile doesn't support the ANSI version of OutputDebugString,
+ // it works only with UTF16 strings.
+ ::OutputDebugString(internal::String::AnsiToUtf16(result.c_str()));
+ ::OutputDebugString(L"\n");
+#elif GTEST_OS_WINDOWS
::OutputDebugStringA(result.c_str());
::OutputDebugStringA("\n");
#endif