From 2d970ee3bad530703ff24bc3a011390b45cdd293 Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Thu, 24 Sep 2009 21:41:36 +0000 Subject: Adds the IsNull() matcher. --- test/gmock_link_test.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/gmock_link_test.h') 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; -- cgit v1.2.3