Lines Matching refs:string

40 #include <string>
82 using testing::internal::string;
86 string Describe(const Matcher<T>& m) {
94 string DescribeNegation(const Matcher<T>& m) {
102 string Explain(const MatcherType& m, const Value& x) {
299 Matcher<list<string> > m = ElementsAre(StrEq("one"), "two");
317 Matcher<const list<string>& > m = ElementsAre("one", "two");
368 vector<string> test_vector;
369 test_vector.push_back("test string");
371 EXPECT_THAT(test_vector, ElementsAre(StrEq("test string")));
375 list<string> test_list;
376 test_list.push_back("test string");
378 EXPECT_THAT(test_list, ElementsAre("test string"));
382 vector<string> test_vector;
431 vector<string> test_vector;
432 test_vector.push_back("test string");
433 test_vector.push_back("test string");
435 Matcher<vector<string> > m = ElementsAre(StrEq("test string"));
440 vector<string> test_vector;
441 test_vector.push_back("other string");
443 Matcher<vector<string> > m = ElementsAre(StrEq("test string"));
448 vector<string> test_vector;
453 Matcher<vector<string> > m = ElementsAre(
530 string array[] = { "hi", "one", "two" };
549 string array1[] = { "hi" };
552 string array2[] = { "ho" };
592 vector<string> test_vector(a, a + GTEST_ARRAY_SIZE_(a));
603 vector<string> test_vector(a, a + GTEST_ARRAY_SIZE_(a));
611 const Matcher<string> kMatcherArray[] =
614 vector<string> test_vector;
643 const string a[5] = { "a", "b", "c", "d", "e" };
698 ::std::string a[] = { "hi", "ho" };
699 ::std::string b[] = { "hi", "ho" };
739 // This also tests that the description string can reference 'negation'.
752 // This also tests that the description string can reference matcher
755 string(negation ? "doesn't equal" : "equals") + " the sum of " +
797 StaticAssertTypeEq< ::std::string, arg_type>();
802 StaticAssertTypeEq<const ::std::string&, arg_type>();
807 const Matcher< ::std::string> m1 = IsEmptyString();
810 const Matcher<const ::std::string&> m2 = IsEmptyStringByRef();
988 EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f'));
990 EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f', 'g'));
992 EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f', 'g',
995 EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f', 'g',
998 EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f', 'g',
999 "h", 'i', ::std::string("j")));
1008 Not(EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f')));
1010 Not(EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f',
1013 Not(EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f', 'g',
1016 Not(EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f', 'g',
1019 Not(EqualsSumOf(::std::string("a"), 'b', 'c', "d", "e", 'f', 'g',
1020 "h", 'i', ::std::string("j"))));
1027 EXPECT_THAT("abcd", EqualsSumOf(::std::string("a"), "b", 'c', "d"));
1030 EXPECT_THAT("abcde", Not(EqualsSumOf(::std::string("a"), "b", 'c', "d")));
1037 std::string prefix_str(prefix);
1043 Matcher<std::string> no_promo =
1044 EqConcat(std::string("foo"), 't');
1045 Matcher<const std::string&> promo =
1120 list<string> another_list;
1125 EXPECT_THAT(another_list, Contains(string("fee")));
1149 EXPECT_THAT(another_set, Contains(Eq(string("fum"))));
1160 EXPECT_THAT(c_string_set, Not(Contains(string("hello").c_str())));
1188 const char* bar = "a string";
1192 map<string, int> another_map;
1197 EXPECT_THAT(another_map, Contains(pair<const string, int>(string("fee"), 1)));
1198 EXPECT_THAT(another_map, Contains(pair<const string, int>("fie", 2)));
1210 EXPECT_THAT(string_array, Contains(Eq(string("fum"))));