Lines Matching defs:const

86 string Describe(const Matcher<T>& m) {
94 string DescribeNegation(const Matcher<T>& m) {
102 string Explain(const MatcherType& m, const Value& x) {
111 const tuple<int, bool> t(5, true);
117 const tuple<int, bool> t(5, true);
124 const tuple<short, int, long> t(4, 5, 6L); // NOLINT
132 const tuple<short, int, long> t(4, 5, 6L); // NOLINT
138 const tuple<short, int, long> t(4, 5, 6L); // NOLINT
163 const tuple<short, int, long, int> t(4, 5, 6L, 6); // NOLINT
170 const Matcher<Tuple3> m = Args<1, 2>(Lt());
177 const Matcher<const Tuple3&> m = Args<0, 1>(Lt());
197 const Matcher<tuple<int, bool, char> > m = Args<2, 0>(Lt());
204 const Matcher<const tuple<int, bool, char, int>&> m =
212 const Matcher<tuple<int, char> > m = Args<1, 0>(Gt());
219 const Matcher<tuple<bool, int, int> > m = Args<1, 2>(Eq());
229 virtual void DescribeTo(::std::ostream* os) const {}
232 MatchResultListener* listener) const {
233 const int diff = get<0>(value) - get<1>(value);
247 const Matcher<tuple<char, int, int> > m = Args<0, 2>(LessThan());
260 virtual void DescribeTo(::std::ostream* os) const {
265 MatchResultListener* listener) const {
266 const int diff = lhs - rhs_;
289 Matcher<const vector<int>&> m = ElementsAre();
311 Matcher<const list<int>& > m = ElementsAre(Gt(5));
317 Matcher<const list<string>& > m = ElementsAre("one", "two");
324 Matcher<const list<int>& > m = ElementsAre(1, Ne(2));
333 Matcher<const vector<int>& > m =
336 const int a[] = { 10, 0, 100 };
344 Matcher<const list<int>& > m = ElementsAre(1, 3);
355 Matcher<const vector<int>& > m = ElementsAre(1, GreaterThan(5));
421 const int a[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
459 const char* strings[] = {
521 const char a2[][3] = { "hi", "lo" };
537 // The following test passes a value of type const char[] to a
538 // function template that expects const T&. Some versions of MSVC
543 extern const char kHi[];
556 const char kHi[] = "hi";
568 const int array1[] = { 1, 2 };
570 const int array2[] = { 0, 0 };
580 const int a[] = { 1, 2, 3 };
590 const char* a[] = { "one", "two", "three" };
595 const char** p = a;
601 const char* a[] = { "one", "two", "three" };
611 const Matcher<string> kMatcherArray[] =
625 const int a[] = { 1, 2, 3 };
627 const vector<int> expected(a, a + GTEST_ARRAY_SIZE_(a));
636 const int a[5] = { 1, 2, 3, 4, 5 };
643 const string a[5] = { "a", "b", "c", "d", "e" };
650 const int a[5] = { 1, 2, 3, 4, 5 };
659 const int a[5] = { 1, 2, 3, 4, 5 };
672 const int a[] = { 1, 2, 3 };
673 const Matcher<int> kMatchers[] = { Eq(1), Eq(2), Eq(3) };
675 const vector<Matcher<int> > expected(
683 const int a[] = { 1, 2, 3 };
684 const vector<int> test_vector(a, a + GTEST_ARRAY_SIZE_(a));
685 const vector<int> expected(a, a + GTEST_ARRAY_SIZE_(a));
690 int* const null_int = NULL;
707 const int a[] = { 1, 2, 3 };
729 const Matcher<int> m = IsEven();
773 const Matcher<int> m1 = IsEven2();
777 const Matcher<int> m2 = EqSumOf(5, 9);
784 const Matcher<int> m1 = IsEven2();
788 const Matcher<int> m2 = EqSumOf(1, 2);
802 StaticAssertTypeEq<const ::std::string&, arg_type>();
807 const Matcher< ::std::string> m1 = IsEmptyString();
810 const Matcher<const ::std::string&> m2 = IsEmptyStringByRef();
842 const Matcher<int> m = IsGreaterThan32And(5);
856 const Matcher<int> m = _is_Greater_Than32and_(5);
871 UncopyableFoo(const UncopyableFoo&);
872 void operator=(const UncopyableFoo&);
881 const Matcher<const UncopyableFoo&> m =
882 ReferencesUncopyable<const UncopyableFoo&>(foo1);
918 const Matcher<const UncopyableFoo&> m =
919 ReferencesAnyOf<const UncopyableFoo&, const UncopyableFoo&>(foo1, foo2);
929 const Matcher<const UncopyableFoo&> m =
930 ReferencesAnyOf<const UncopyableFoo&, const UncopyableFoo&>(foo1, foo2);
945 const Matcher<const long&> m = IsNotInClosedRange(10, 20); // NOLINT
1045 Matcher<const std::string&> promo =
1099 const int count = static_cast<int>(Value(arg, m1))
1144 set<const char*> another_set;
1158 set<const char*> c_string_set;
1164 const int a[2] = { 1, 2 };
1165 Matcher<const int (&)[2]> m = Contains(2);
1187 map<const char*, int> my_map;
1188 const char* bar = "a string";
1190 EXPECT_THAT(my_map, Contains(pair<const char* const, int>(bar, 2)));
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)));
1205 EXPECT_THAT(some_map, Not(Contains(pair<const int, int>(2, 23))));
1209 const char* string_array[] = { "fee", "fie", "foe", "fum" };
1219 const int a[] = { 1, 2, 3 };
1225 const int a[] = { 1, 2 };
1226 const int* const pointer = a;
1265 bool AllOf(const T1& t1, const T2& t2) { return true; }
1273 AnyOf(const T1& t1, const T2& t2) { return true; }