Home | History | Annotate | Download | only in test

Lines Matching refs:ByRef

59 using testing::ByRef;
1222 // Tests ByRef().
1229 ::testing::internal::ReferenceWrapper<const std::string> ref_wrapper = ByRef(s1);
1234 ref_wrapper = ByRef(s2);
1238 ::testing::internal::ReferenceWrapper<const std::string> ref_wrapper1 = ByRef(s1);
1245 // Tests using ByRef() on a const value.
1248 // int& ref = ByRef(n); // This shouldn't compile - we have a
1250 const int& const_ref = ByRef(n);
1254 // Tests using ByRef() on a non-const value.
1258 // ByRef(n) can be used as either an int&,
1259 int& ref = ByRef(n);
1263 const int& const_ref = ByRef(n);
1267 // Tests explicitly specifying the type when using ByRef().
1270 const int& r1 = ByRef<const int>(n);
1273 // ByRef<char>(n); // This shouldn't compile - we have a negative
1277 Derived& r2 = ByRef<Derived>(d);
1280 const Derived& r3 = ByRef<const Derived>(d);
1283 Base& r4 = ByRef<Base>(d);
1286 const Base& r5 = ByRef<const Base>(d);
1293 // ByRef<Derived>(b);
1296 // Tests that Google Mock prints expression ByRef(x) as a reference to x.
1301 testing::internal::UniversalPrint(ByRef(n), &actual);