diff options
Diffstat (limited to 'test/gmock_link_test.h')
-rw-r--r-- | test/gmock_link_test.h | 12 |
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; |