Home | History | Annotate | Download | only in test

Lines Matching refs:IsSubstring

139 using testing::IsSubstring;
2809 // Tests for ::testing::IsSubstring().
2811 // Tests that IsSubstring() returns the correct result when the input
2814 EXPECT_FALSE(IsSubstring("", "", NULL, "a"));
2815 EXPECT_FALSE(IsSubstring("", "", "b", NULL));
2816 EXPECT_FALSE(IsSubstring("", "", "needle", "haystack"));
2818 EXPECT_TRUE(IsSubstring("", "", static_cast<const char*>(NULL), NULL));
2819 EXPECT_TRUE(IsSubstring("", "", "needle", "two needles"));
2822 // Tests that IsSubstring() returns the correct result when the input
2825 EXPECT_FALSE(IsSubstring("", "", kNull, L"a"));
2826 EXPECT_FALSE(IsSubstring("", "", L"b", kNull));
2827 EXPECT_FALSE(IsSubstring("", "", L"needle", L"haystack"));
2829 EXPECT_TRUE(IsSubstring("", "", static_cast<const wchar_t*>(NULL), NULL));
2830 EXPECT_TRUE(IsSubstring("", "", L"needle", L"two needles"));
2833 // Tests that IsSubstring() generates the correct message when the input
2840 IsSubstring("needle_expr", "haystack_expr",
2846 // Tests that IsSubstring returns the correct result when the input
2849 EXPECT_TRUE(IsSubstring("", "", std::string("hello"), "ahellob"));
2850 EXPECT_FALSE(IsSubstring("", "", "hello", std::string("world")));
2856 // Tests that IsSubstring returns the correct result when the input
2859 EXPECT_TRUE(IsSubstring("", "", ::std::wstring(L"needle"), L"two needles"));
2860 EXPECT_FALSE(IsSubstring("", "", L"needle", ::std::wstring(L"haystack")));
2863 // Tests that IsSubstring() generates the correct message when the input
2870 IsSubstring(
3668 EXPECT_PRED_FORMAT2(testing::IsSubstring, "some fatal failure",
3670 EXPECT_PRED_FORMAT2(testing::IsSubstring, "it does",
3687 EXPECT_PRED_FORMAT2(testing::IsSubstring, "some fatal failure",
3689 EXPECT_PRED_FORMAT2(testing::IsSubstring, "it does",
3691 EXPECT_PRED_FORMAT2(testing::IsSubstring, "other failure",
3706 EXPECT_PRED_FORMAT2(testing::IsSubstring, "foo",
3708 EXPECT_PRED_FORMAT2(testing::IsSubstring, "my message",