Lines Matching refs:NULL

235   // Streaming shouldn't crash when the underlying ostream is NULL.
241 EXPECT_TRUE(DummyMatchResultListener().stream() == NULL);
242 EXPECT_TRUE(StreamMatchResultListener(NULL).stream() == NULL);
252 EXPECT_FALSE(StreamMatchResultListener(NULL).IsInterested());
286 if (listener->stream() != NULL) {
327 // Tests that NULL can be used in place of Eq(NULL).
329 Matcher<int*> m1 = NULL;
330 EXPECT_TRUE(m1.Matches(NULL));
433 const MatcherInterface<int>* dummy_impl = NULL;
492 if (listener->stream() != NULL) {
1002 // Tests that IsNull() matches any NULL pointer of any type.
1005 int* p1 = NULL;
1011 const char* p2 = NULL;
1025 void* p3 = NULL;
1061 EXPECT_EQ("is NULL", Describe(m));
1062 EXPECT_EQ("isn't NULL", DescribeNegation(m));
1065 // Tests that NotNull() matches any non-NULL pointer of any type.
1068 int* p1 = NULL;
1074 const char* p2 = NULL;
1109 EXPECT_EQ("isn't NULL", Describe(m));
1175 EXPECT_FALSE(m.Matches(NULL));
1199 EXPECT_TRUE(m.Matches(NULL));
1217 EXPECT_FALSE(m.Matches(NULL));
1257 EXPECT_TRUE(m.Matches(NULL));
1287 EXPECT_FALSE(m1.Matches(NULL));
1292 EXPECT_FALSE(m2.Matches(NULL));
1466 EXPECT_FALSE(m1.Matches(NULL));
1487 EXPECT_FALSE(m1.Matches(NULL));
1508 EXPECT_FALSE(m1.Matches(NULL));
1530 EXPECT_FALSE(m1.Matches(NULL));
1552 EXPECT_FALSE(m.Matches(NULL));
1592 EXPECT_TRUE(m.Matches(NULL));
1610 EXPECT_FALSE(m.Matches(NULL));
1650 EXPECT_TRUE(m.Matches(NULL));
1680 EXPECT_FALSE(m1.Matches(NULL));
1685 EXPECT_FALSE(m2.Matches(NULL));
1700 EXPECT_FALSE(m1.Matches(NULL));
1721 EXPECT_FALSE(m1.Matches(NULL));
1743 EXPECT_FALSE(m.Matches(NULL));
1783 EXPECT_TRUE(m.Matches(NULL));
1801 EXPECT_FALSE(m.Matches(NULL));
1841 EXPECT_TRUE(m.Matches(NULL));
1871 EXPECT_FALSE(m1.Matches(NULL));
1876 EXPECT_FALSE(m2.Matches(NULL));
1891 EXPECT_FALSE(m1.Matches(NULL));
1912 EXPECT_FALSE(m1.Matches(NULL));
3149 EXPECT_FALSE(m.Matches(NULL));
3159 EXPECT_FALSE(m.Matches(NULL));
3169 EXPECT_FALSE(m.Matches(NULL));
3180 p = NULL;
3207 // Wrong types. NULL is passed.
3219 // Already NULL.
3220 Base* as_base_ptr = NULL;
3234 // Multiply derived from Base. dynamic_cast<> returns NULL.
3256 Base* null = NULL;
3257 EXPECT_THAT(Explain(matcher, null), HasSubstr("NULL"));
3318 EXPECT_FALSE(m.Matches(NULL));
3329 EXPECT_FALSE(m.Matches(NULL));
3342 EXPECT_EQ("", Explain(m, static_cast<const string*>(NULL)));
3379 AStruct() : x(0), y(1.0), z(5), p(NULL) {}
3432 // Matching against NULL.
3433 Matcher<AStruct> m = Field(&AStruct::p, static_cast<const char*>(NULL));
3439 // Matching a pointer that is not NULL.
3535 // Tests that Field() does not match the NULL pointer.
3538 EXPECT_FALSE(m.Matches(NULL));
3568 EXPECT_EQ("", Explain(m, static_cast<const AStruct*>(NULL)));
3751 // Tests that Property() does not match the NULL pointer.
3754 EXPECT_FALSE(m.Matches(NULL));
3787 EXPECT_EQ("", Explain(m, static_cast<const AClass*>(NULL)));
3893 // a NULL function pointer.
3896 ResultOf(static_cast<string(*)(int dummy)>(NULL), Eq(string("foo"))),
3897 "NULL function pointer is passed into ResultOf\\(\\)\\.");
5193 seed = static_cast<testing::internal::Int32>(time(NULL));