aboutsummaryrefslogtreecommitdiffstats
path: root/test/gmock_link_test.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-09-24 21:41:36 +0000
committerzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-09-24 21:41:36 +0000
commit2d970ee3bad530703ff24bc3a011390b45cdd293 (patch)
tree76d3726db6abb5f652671bfa2b31348c1506f9b5 /test/gmock_link_test.h
parentf7af24c7de14ccb10a24909a6f3440a763cb1164 (diff)
downloadgoogletest-2d970ee3bad530703ff24bc3a011390b45cdd293.tar.gz
googletest-2d970ee3bad530703ff24bc3a011390b45cdd293.tar.bz2
googletest-2d970ee3bad530703ff24bc3a011390b45cdd293.zip
Adds the IsNull() matcher.
Diffstat (limited to 'test/gmock_link_test.h')
-rw-r--r--test/gmock_link_test.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/gmock_link_test.h b/test/gmock_link_test.h
index bbac8ae2..40554bfe 100644
--- a/test/gmock_link_test.h
+++ b/test/gmock_link_test.h
@@ -147,6 +147,7 @@ using testing::IgnoreResult;
using testing::Invoke;
using testing::InvokeArgument;
using testing::InvokeWithoutArgs;
+using testing::IsNull;
using testing::Le;
using testing::Lt;
using testing::Matcher;
@@ -491,6 +492,13 @@ TEST(LinkTest, TestMatcherNotNull) {
ON_CALL(mock, VoidFromString(NotNull())).WillByDefault(Return());
}
+// Tests the linkage of the IsNull matcher.
+TEST(LinkTest, TestMatcherIsNull) {
+ Mock mock;
+
+ ON_CALL(mock, VoidFromString(IsNull())).WillByDefault(Return());
+}
+
// Tests the linkage of the Ref matcher.
TEST(LinkTest, TestMatcherRef) {
Mock mock;