diff options
Diffstat (limited to 'testing/gtest_mac_unittest.mm')
-rw-r--r-- | testing/gtest_mac_unittest.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/gtest_mac_unittest.mm b/testing/gtest_mac_unittest.mm index c5bc47f..1376ed1 100644 --- a/testing/gtest_mac_unittest.mm +++ b/testing/gtest_mac_unittest.mm @@ -45,3 +45,13 @@ TEST(GTestMac, AssertNSNE) { ASSERT_NSNE(@"a", @"b"); } + +TEST(GTestMac, ExpectNSNil) { + base::mac::ScopedNSAutoreleasePool pool; + + EXPECT_NSEQ(nil, nil); + EXPECT_NSNE(nil, @"a"); + EXPECT_NSNE(@"a", nil); + + // TODO(shess): Test that EXPECT_NSNE(nil, nil) fails. +} |