aboutsummaryrefslogtreecommitdiffstats
path: root/test/gmock_link_test.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-03-11 23:37:56 +0000
committerzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-03-11 23:37:56 +0000
commit5b5d62f19019a398167df1f1b59279e049bf24ce (patch)
tree1b4307403525a55b30c6411b4cad6430660817fc /test/gmock_link_test.h
parent93ad3551c060599af0d4789ee0584f1652abf80b (diff)
downloadgoogletest-5b5d62f19019a398167df1f1b59279e049bf24ce.tar.gz
googletest-5b5d62f19019a398167df1f1b59279e049bf24ce.tar.bz2
googletest-5b5d62f19019a398167df1f1b59279e049bf24ce.zip
Makes the code compile on Windows CE.
Diffstat (limited to 'test/gmock_link_test.h')
-rw-r--r--test/gmock_link_test.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/gmock_link_test.h b/test/gmock_link_test.h
index 769c85d2..96cd79fb 100644
--- a/test/gmock_link_test.h
+++ b/test/gmock_link_test.h
@@ -116,7 +116,10 @@
#include <gmock/gmock.h>
+#ifndef _WIN32_WCE
#include <errno.h>
+#endif
+
#include <gtest/gtest.h>
#include <iostream>
#include <vector>
@@ -161,7 +164,6 @@ using testing::ReturnNull;
using testing::ReturnRef;
using testing::SetArgumentPointee;
using testing::SetArrayArgument;
-using testing::SetErrnoAndReturn;
using testing::StartsWith;
using testing::StrCaseEq;
using testing::StrCaseNe;
@@ -173,6 +175,10 @@ using testing::WithArg;
using testing::WithArgs;
using testing::WithoutArgs;
+#ifndef _WIN32_WCE
+using testing::SetErrnoAndReturn;
+#endif // _WIN32_WCE
+
#if GTEST_HAS_EXCEPTIONS
using testing::Throw;
#endif // GTEST_HAS_EXCEPTIONS
@@ -290,6 +296,8 @@ TEST(LinkTest, TestSetArrayArgument) {
mock.VoidFromString(&ch);
}
+#ifndef _WIN32_WCE
+
// Tests the linkage of the SetErrnoAndReturn action.
TEST(LinkTest, TestSetErrnoAndReturn) {
Mock mock;
@@ -300,6 +308,8 @@ TEST(LinkTest, TestSetErrnoAndReturn) {
errno = saved_errno;
}
+#endif // _WIN32_WCE
+
// Tests the linkage of the Invoke(function) and Invoke(object, method) actions.
TEST(LinkTest, TestInvoke) {
Mock mock;