Home | History | Annotate | Download | only in test

Lines Matching refs:ByRef

53 using testing::ByRef;
1253 // Tests ByRef().
1261 ByRef(s1);
1266 ref_wrapper = ByRef(s2);
1271 ByRef(s1);
1278 // Tests using ByRef() on a const value.
1281 // int& ref = ByRef(n); // This shouldn't compile - we have a
1283 const int& const_ref = ByRef(n);
1287 // Tests using ByRef() on a non-const value.
1291 // ByRef(n) can be used as either an int&,
1292 int& ref = ByRef(n);
1296 const int& const_ref = ByRef(n);
1300 // Tests explicitly specifying the type when using ByRef().
1303 const int& r1 = ByRef<const int>(n);
1306 // ByRef<char>(n); // This shouldn't compile - we have a negative
1310 Derived& r2 = ByRef<Derived>(d);
1313 const Derived& r3 = ByRef<const Derived>(d);
1316 Base& r4 = ByRef<Base>(d);
1319 const Base& r5 = ByRef<const Base>(d);
1326 // ByRef<Derived>(b);
1329 // Tests that Google Mock prints expression ByRef(x) as a reference to x.
1334 testing::internal::UniversalPrint(ByRef(n), &actual);