Searched refs:ByRef (Results 1 - 5 of 5) sorted by relevance

/gem5/ext/googletest/googlemock/test/
H A Dgmock-actions_test.cc53 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(
[all...]
H A Dgmock-generated-actions_test.cc56 using testing::ByRef;
271 // Tests using InvokeArgument with ByRef() and a function that takes a
275 InvokeArgument<0>(ByRef(g_double));
276 // The above line calls ByRef() on a const value.
280 a = InvokeArgument<0>(ByRef(x)); // This calls ByRef() on a non-const.
H A Dgmock-matchers_test.cc86 using testing::ByRef;
4034 // with the help of ByRef().
4057 const Matcher<const NotCopyable&> m = Eq(ByRef(const_value1));
4066 const Matcher<NotCopyable&> m = Ge(ByRef(value2));
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-tuple.h125 // ByRef<T>::type is T if T is a reference; otherwise it's const T&.
127 struct ByRef { typedef const T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
129 struct ByRef<T&> { typedef T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
131 // A handy wrapper for ByRef.
132 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-actions.h962 // Allows the expression ByRef(x) to be printed as a reference to x.
1193 // suppose 'derived' is an object of type Derived, ByRef(derived)
1197 // ByRef<const Base>(derived)
1199 inline internal::ReferenceWrapper<T> ByRef(T& l_value) { // NOLINT function in namespace:testing

Completed in 50 milliseconds