Home | History | Annotate | Download | only in test

Lines Matching refs:IsSubstring

133 using testing::IsSubstring;
2566 // Tests for ::testing::IsSubstring().
2568 // Tests that IsSubstring() returns the correct result when the input
2571 EXPECT_FALSE(IsSubstring("", "", NULL, "a"));
2572 EXPECT_FALSE(IsSubstring("", "", "b", NULL));
2573 EXPECT_FALSE(IsSubstring("", "", "needle", "haystack"));
2575 EXPECT_TRUE(IsSubstring("", "", static_cast<const char*>(NULL), NULL));
2576 EXPECT_TRUE(IsSubstring("", "", "needle", "two needles"));
2579 // Tests that IsSubstring() returns the correct result when the input
2582 EXPECT_FALSE(IsSubstring("", "", kNull, L"a"));
2583 EXPECT_FALSE(IsSubstring("", "", L"b", kNull));
2584 EXPECT_FALSE(IsSubstring("", "", L"needle", L"haystack"));
2586 EXPECT_TRUE(IsSubstring("", "", static_cast<const wchar_t*>(NULL), NULL));
2587 EXPECT_TRUE(IsSubstring("", "", L"needle", L"two needles"));
2590 // Tests that IsSubstring() generates the correct message when the input
2597 IsSubstring("needle_expr", "haystack_expr",
2601 // Tests that IsSubstring returns the correct result when the input
2604 EXPECT_TRUE(IsSubstring("", "", std::string("hello"), "ahellob"));
2605 EXPECT_FALSE(IsSubstring("", "", "hello", std::string("world")));
2609 // Tests that IsSubstring returns the correct result when the input
2612 EXPECT_TRUE(IsSubstring("", "", ::std::wstring(L"needle"), L"two needles"));
2613 EXPECT_FALSE(IsSubstring("", "", L"needle", ::std::wstring(L"haystack")));
2616 // Tests that IsSubstring() generates the correct message when the input
2623 IsSubstring(
3429 EXPECT_PRED_FORMAT2(testing::IsSubstring, "some fatal failure",
3431 EXPECT_PRED_FORMAT2(testing::IsSubstring, "it does",
3448 EXPECT_PRED_FORMAT2(testing::IsSubstring, "some fatal failure",
3450 EXPECT_PRED_FORMAT2(testing::IsSubstring, "it does",
3452 EXPECT_PRED_FORMAT2(testing::IsSubstring, "other failure",
3467 EXPECT_PRED_FORMAT2(testing::IsSubstring, "foo",
3469 EXPECT_PRED_FORMAT2(testing::IsSubstring, "my message",
5441 EXPECT_PRED_FORMAT2(IsSubstring, expected_help_fragment, captured_stdout);