aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gmock-actions_test.cc7
-rw-r--r--test/gmock_link_test.h12
2 files changed, 18 insertions, 1 deletions
diff --git a/test/gmock-actions_test.cc b/test/gmock-actions_test.cc
index 077681b0..e4939e1a 100644
--- a/test/gmock-actions_test.cc
+++ b/test/gmock-actions_test.cc
@@ -69,7 +69,10 @@ using testing::ReturnNull;
using testing::ReturnRef;
using testing::SetArgumentPointee;
using testing::SetArrayArgument;
+
+#ifndef _WIN32_WCE
using testing::SetErrnoAndReturn;
+#endif // _WIN32_WCE
#if GMOCK_HAS_PROTOBUF_
using testing::internal::TestMessage;
@@ -951,6 +954,8 @@ TEST(AssignTest, CompatibleTypes) {
EXPECT_DOUBLE_EQ(5, x);
}
+#ifndef _WIN32_WCE
+
class SetErrnoAndReturnTest : public testing::Test {
protected:
virtual void SetUp() { errno = 0; }
@@ -976,4 +981,6 @@ TEST_F(SetErrnoAndReturnTest, CompatibleTypes) {
EXPECT_EQ(EINVAL, errno);
}
+#endif // _WIN32_WCE
+
} // Unnamed namespace
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;