Home | History | Annotate | Download | only in test

Lines Matching defs:NULL

97         test_info_obj_("FooTest", "Bar", NULL, NULL, 0, NULL) {}
122 streamer_.OnTestCaseStart(TestCase("FooTest", "Bar", NULL, NULL));
128 streamer_.OnTestCaseEnd(TestCase("FooTest", "Bar", NULL, NULL));
419 saved_tz_ = NULL;
443 saved_tz_ = NULL;
449 // being NULL.
508 // Tests that GTEST_IS_NULL_LITERAL_(x) is true when x is a null
511 EXPECT_TRUE(GTEST_IS_NULL_LITERAL_(NULL));
517 // Tests that GTEST_IS_NULL_LITERAL_(x) is false when x is not a null
523 EXPECT_FALSE(GTEST_IS_NULL_LITERAL_(static_cast<void*>(NULL)));
1021 // for NULL as a workaround.
1022 static const wchar_t* const kNull = NULL;
1026 EXPECT_TRUE(String::CaseInsensitiveWideCStringEquals(NULL, NULL));
1040 EXPECT_STREQ("(null)",
1041 String::ShowWideCString(NULL).c_str());
1048 EXPECT_EQ(NULL, String::AnsiToUtf16(NULL));
1049 EXPECT_EQ(NULL, String::Utf16ToAnsi(NULL));
1147 ThreadWithParam<FailureMode> thread(&AddFailure, failure, NULL);
1559 saver_ = NULL;
1603 GTestFlagSaver* GTestFlagSaverTest::saver_ = NULL;
1621 // variable. The caller must ensure that both arguments are not NULL.
1634 std::string *prev_env = NULL;
1924 ASSERT_TRUE(UnitTest::GetInstance()->original_working_dir() != NULL);
1946 ASSERT_TRUE(test_info != NULL);
1954 ASSERT_TRUE(test_case != NULL);
1987 ASSERT_TRUE(test_case != NULL);
2416 // Tests ASSERT_STREQ with non-NULL arguments.
2429 // Tests ASSERT_STREQ with NULL arguments.
2431 ASSERT_STREQ(static_cast<const char *>(NULL), NULL);
2432 EXPECT_FATAL_FAILURE(ASSERT_STREQ(NULL, "non-null"),
2433 "non-null");
2436 // Tests ASSERT_STREQ with NULL arguments.
2438 EXPECT_FATAL_FAILURE(ASSERT_STREQ("non-null", NULL),
2439 "non-null");
2445 ASSERT_STRNE("Hi", NULL);
2446 ASSERT_STRNE(NULL, "Hi");
2447 ASSERT_STRNE("", NULL);
2448 ASSERT_STRNE(NULL, "");
2458 ASSERT_STRCASEEQ(static_cast<const char *>(NULL), NULL);
2468 ASSERT_STRCASENE("Hi", NULL);
2469 ASSERT_STRCASENE(NULL, "Hi");
2470 ASSERT_STRCASENE("", NULL);
2471 ASSERT_STRCASENE(NULL, "");
2480 // NULL strings.
2481 ASSERT_STREQ(static_cast<const wchar_t *>(NULL), NULL);
2486 // Non-null vs NULL.
2487 EXPECT_NONFATAL_FAILURE(EXPECT_STREQ(L"non-null", NULL),
2488 "non-null");
2509 // NULL strings.
2511 EXPECT_STRNE(static_cast<const wchar_t *>(NULL), NULL);
2518 // Non-null vs NULL.
2519 ASSERT_STRNE(L"non-null", NULL);
2541 EXPECT_FALSE(IsSubstring("", "", NULL, "a"));
2542 EXPECT_FALSE(IsSubstring("", "", "b", NULL));
2545 EXPECT_TRUE(IsSubstring("", "", static_cast<const char*>(NULL), NULL));
2556 EXPECT_TRUE(IsSubstring("", "", static_cast<const wchar_t*>(NULL), NULL));
3588 // Tests ASSERT_EQ(NULL, pointer).
3592 const char* p = NULL;
3595 // static_cast since the test verifies the ability to use bare NULL as the
3597 ASSERT_EQ(NULL, p);
3601 EXPECT_FATAL_FAILURE(ASSERT_EQ(NULL, &n),
3607 // treated as a null pointer by the compiler, we need to make sure
3609 // ASSERT_EQ(static_cast<void*>(NULL), non_pointer).
4207 ASSERT_TRUE(false) << static_cast<const char *>(NULL)
4208 << static_cast<char *>(NULL);
4209 }, "(null)(null)");
4314 // Tests EXPECT_EQ(NULL, pointer).
4317 const char* p = NULL;
4320 // static_cast since the test verifies the ability to use bare NULL as the
4322 EXPECT_EQ(NULL, p);
4326 EXPECT_NONFATAL_FAILURE(EXPECT_EQ(NULL, &n),
4332 // treated as a null pointer by the compiler, we need to make sure
4334 // EXPECT_EQ(static_cast<void*>(NULL), non_pointer).
4355 char* const p0 = NULL;
4458 EXPECT_STRNE("(null)", StreamableToString(p).c_str());
4461 // Tests using StreamableToString() on a NULL non-char pointer.
4463 int* p = NULL;
4464 EXPECT_STREQ("(null)", StreamableToString(p).c_str());
4472 // Tests using StreamableToString() on a NULL C string.
4474 char* p = NULL;
4475 EXPECT_STREQ("(null)", StreamableToString(p).c_str());
4513 // Tests using NULL char pointer as an assertion message.
4515 // In MSVC, streaming a NULL char * causes access violation. Google Test
4516 // implemented a workaround (substituting "(null)" for NULL). This
4519 EXPECT_FATAL_FAILURE(FAIL() << static_cast<const char*>(NULL),
4520 "(null)");
4773 char* const p0 = NULL;
4795 wchar_t* const p0 = NULL;
4820 ASSERT_EQ(static_cast<const int*>(NULL),
4821 static_cast<const int*>(NULL));
4822 EXPECT_FATAL_FAILURE(ASSERT_EQ(static_cast<const int*>(NULL),
4969 // Checks that the copy constructor doesn't try to dereference NULL pointers
5130 // Tests streaming NULL pointers to testing::Message.
5133 char* const p1 = NULL;
5134 unsigned char* const p2 = NULL;
5135 int* p3 = NULL;
5136 double* p4 = NULL;
5137 bool* p5 = NULL;
5138 Message* p6 = NULL;
5141 ASSERT_STREQ("(null)(null)(null)(null)(null)(null)",
5147 // Streams a NULL of type const wchar_t*.
5148 const wchar_t* const_wstr = NULL;
5149 EXPECT_STREQ("(null)",
5152 // Streams a NULL of type wchar_t*.
5153 wchar_t* wstr = NULL;
5154 EXPECT_STREQ("(null)",
5157 // Streams a non-NULL of type const wchar_t*.
5162 // Streams a non-NULL of type wchar_t*.
5178 GetTestCase("TestInfoTest", "", NULL, NULL);
5185 return NULL;
5246 shared_resource_ = NULL;
5264 const char* SetUpTestCaseTest::shared_resource_ = NULL;
5268 EXPECT_STRNE(NULL, shared_resource_);
5537 NULL
5541 NULL
5551 NULL
5556 NULL
5567 NULL
5573 NULL
5584 NULL
5589 NULL
5600 NULL
5605 NULL
5616 NULL
5621 NULL
5632 NULL
5637 NULL
5648 NULL
5653 NULL
5664 NULL
5669 NULL
5681 NULL
5686 NULL
5697 NULL
5702 NULL
5713 NULL
5718 NULL
5731 NULL
5736 NULL
5749 NULL
5755 NULL
5769 NULL
5774 NULL
5785 NULL
5790 NULL
5801 NULL
5806 NULL
5817 NULL
5822 NULL
5833 NULL
5838 NULL
5849 NULL
5855 NULL
5866 NULL
5871 NULL
5882 NULL
5887 NULL
5898 NULL
5903 NULL
5915 NULL
5920 NULL
5931 NULL
5936 NULL
5947 NULL
5952 NULL
5963 NULL
5968 NULL
5979 NULL
5984 NULL
5995 NULL
6000 NULL
6011 NULL
6016 NULL
6027 NULL
6032 NULL
6044 NULL
6049 NULL
6061 NULL
6066 NULL
6078 NULL
6083 NULL
6094 NULL
6099 NULL
6111 NULL
6116 NULL
6127 NULL
6132 NULL
6142 NULL
6147 NULL
6159 NULL
6164 NULL
6175 NULL
6180 NULL
6192 NULL
6197 NULL
6212 NULL
6218 NULL
6233 // Tests that current_test_info() returns NULL before the first test in
6239 EXPECT_TRUE(test_info == NULL)
6243 // Tests that current_test_info() returns NULL after the last test in
6248 EXPECT_TRUE(test_info == NULL)
6258 ASSERT_TRUE(NULL != test_info)
6273 ASSERT_TRUE(NULL != test_info)
6695 TestListener() : on_start_counter_(NULL), is_destroyed_(NULL) {}
6707 if (on_start_counter_ != NULL)
6720 EXPECT_TRUE(TestEventListenersAccessor::GetRepeater(&listeners) != NULL);
6721 EXPECT_TRUE(listeners.default_result_printer() == NULL);
6722 EXPECT_TRUE(listeners.default_xml_generator() == NULL);
6732 NULL, &default_result_printer_is_destroyed);
6734 NULL, &default_xml_printer_is_destroyed);
6736 NULL, &extra_listener_is_destroyed);
6861 EXPECT_TRUE(listeners.Release(listener) == NULL);
6871 TestListener* listener = new TestListener(&on_start_counter, NULL);
6912 TestEventListenersAccessor::SetDefaultResultPrinter(&listeners, NULL);
6914 EXPECT_TRUE(listeners.default_result_printer() == NULL);
6938 EXPECT_TRUE(listeners.default_result_printer() == NULL);
6971 TestEventListenersAccessor::SetDefaultXmlGenerator(&listeners, NULL);
6973 EXPECT_TRUE(listeners.default_xml_generator() == NULL);
6997 EXPECT_TRUE(listeners.default_xml_generator() == NULL);