diff options
| author | zhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386> | 2009-09-24 21:41:36 +0000 | 
|---|---|---|
| committer | zhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386> | 2009-09-24 21:41:36 +0000 | 
| commit | 2d970ee3bad530703ff24bc3a011390b45cdd293 (patch) | |
| tree | 76d3726db6abb5f652671bfa2b31348c1506f9b5 /test/gmock_link_test.h | |
| parent | f7af24c7de14ccb10a24909a6f3440a763cb1164 (diff) | |
| download | googletest-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.h | 8 | 
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; | 
