Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
93244dc3
Commit
93244dc3
authored
Sep 17, 2009
by
zhanyong.wan
Browse files
Disbles two tests that crash on Symbian.
parent
4bd79e4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
test/gmock-nice-strict_test.cc
test/gmock-nice-strict_test.cc
+13
-3
No files found.
test/gmock-nice-strict_test.cc
View file @
93244dc3
...
@@ -173,16 +173,21 @@ TEST(NiceMockTest, NonDefaultConstructor10) {
...
@@ -173,16 +173,21 @@ TEST(NiceMockTest, NonDefaultConstructor10) {
nice_bar
.
That
(
5
,
true
);
nice_bar
.
That
(
5
,
true
);
}
}
#if !GTEST_OS_SYMBIAN
// Tests that NiceMock<Mock> compiles where Mock is a user-defined
// Tests that NiceMock<Mock> compiles where Mock is a user-defined
// class (as opposed to ::testing::Mock). We had to workaround an
// class (as opposed to ::testing::Mock). We had to workaround an
// MSVC 8.0 bug that caused the symbol Mock used in the definition of
// MSVC 8.0 bug that caused the symbol Mock used in the definition of
// NiceMock to be looked up in the wrong context, and this test
// NiceMock to be looked up in the wrong context, and this test
// ensures that our fix works.
// ensures that our fix works.
//
// We have to skip this test on Symbian, as it causes the program to
// crash there, for reasons unclear to us yet.
TEST
(
NiceMockTest
,
AcceptsClassNamedMock
)
{
TEST
(
NiceMockTest
,
AcceptsClassNamedMock
)
{
NiceMock
<
::
Mock
>
nice
;
NiceMock
<
::
Mock
>
nice
;
EXPECT_CALL
(
nice
,
DoThis
());
EXPECT_CALL
(
nice
,
DoThis
());
nice
.
DoThis
();
nice
.
DoThis
();
}
}
#endif // !GTEST_OS_SYMBIAN
// Tests that a strict mock allows expected calls.
// Tests that a strict mock allows expected calls.
TEST
(
StrictMockTest
,
AllowsExpectedCall
)
{
TEST
(
StrictMockTest
,
AllowsExpectedCall
)
{
...
@@ -242,16 +247,21 @@ TEST(StrictMockTest, NonDefaultConstructor10) {
...
@@ -242,16 +247,21 @@ TEST(StrictMockTest, NonDefaultConstructor10) {
"Uninteresting mock function call"
);
"Uninteresting mock function call"
);
}
}
#if !GTEST_OS_SYMBIAN
// Tests that StrictMock<Mock> compiles where Mock is a user-defined
// Tests that StrictMock<Mock> compiles where Mock is a user-defined
// class (as opposed to ::testing::Mock). We had to workaround an
// class (as opposed to ::testing::Mock). We had to workaround an
// MSVC 8.0 bug that caused the symbol Mock used in the definition of
// MSVC 8.0 bug that caused the symbol Mock used in the definition of
// StrictMock to be looked up in the wrong context, and this test
// StrictMock to be looked up in the wrong context, and this test
// ensures that our fix works.
// ensures that our fix works.
//
// We have to skip this test on Symbian, as it causes the program to
// crash there, for reasons unclear to us yet.
TEST
(
StrictMockTest
,
AcceptsClassNamedMock
)
{
TEST
(
StrictMockTest
,
AcceptsClassNamedMock
)
{
StrictMock
<
::
Mock
>
n
ic
e
;
StrictMock
<
::
Mock
>
str
ic
t
;
EXPECT_CALL
(
n
ic
e
,
DoThis
());
EXPECT_CALL
(
str
ic
t
,
DoThis
());
n
ic
e
.
DoThis
();
str
ic
t
.
DoThis
();
}
}
#endif // !GTEST_OS_SYMBIAN
}
// namespace gmock_nice_strict_test
}
// namespace gmock_nice_strict_test
}
// namespace testing
}
// namespace testing
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment