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

/external/chromium/testing/gmock/test/
H A Dgmock-actions_test.cc59 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(
[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.cc78 using testing::ByRef;
3465 // with the help of ByRef().
3488 const Matcher<const NotCopyable&> m = Eq(ByRef(const_value1));
3497 const Matcher<NotCopyable&> m = Ge(ByRef(value2));
/external/protobuf/gtest/include/gtest/internal/
H A Dgtest-tuple.h114 // ByRef<T>::type is T if T is a reference; otherwise it's const T&.
116 struct ByRef { typedef const T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
118 struct ByRef<T&> { typedef T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
120 // A handy wrapper for ByRef.
121 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/external/chromium/testing/gtest/include/gtest/internal/
H A Dgtest-tuple.h115 // ByRef<T>::type is T if T is a reference; otherwise it's const T&.
117 struct ByRef { typedef const T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
119 struct ByRef<T&> { typedef T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
121 // A handy wrapper for ByRef.
122 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/external/gtest/include/gtest/internal/
H A Dgtest-tuple.h115 // ByRef<T>::type is T if T is a reference; otherwise it's const T&.
117 struct ByRef { typedef const T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
119 struct ByRef<T&> { typedef T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
121 // A handy wrapper for ByRef.
122 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
H A Dgtest-tuple.h115 // ByRef<T>::type is T if T is a reference; otherwise it's const T&.
117 struct ByRef { typedef const T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
119 struct ByRef<T&> { typedef T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
121 // A handy wrapper for ByRef.
122 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/external/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-tuple.h115 // ByRef<T>::type is T if T is a reference; otherwise it's const T&.
117 struct ByRef { typedef const T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
119 struct ByRef<T&> { typedef T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
121 // A handy wrapper for ByRef.
122 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/external/open-vcdiff/gtest/include/gtest/internal/
H A Dgtest-tuple.h114 // ByRef<T>::type is T if T is a reference; otherwise it's const T&.
116 struct ByRef { typedef const T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
118 struct ByRef<T&> { typedef T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
120 // A handy wrapper for ByRef.
121 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/external/chromium/testing/gmock/include/gmock/
H A Dgmock-actions.h842 // Allows the expression ByRef(x) to be printed as a reference to x.
1064 // suppose 'derived' is an object of type Derived, ByRef(derived)
1068 // ByRef<const Base>(derived)
1070 inline internal::ReferenceWrapper<T> ByRef(T& l_value) { // NOLINT function in namespace:testing
/external/clang/lib/Sema/
H A DSemaExpr.cpp10929 bool ByRef = false; local
10955 ByRef = true;
10999 CSI->addCapture(Var, HasBlocksAttr, ByRef, Nested, Loc,
11008 bool ByRef = false; local
11010 ByRef = (Kind == TryCapture_ExplicitByRef);
11012 ByRef = (LSI->ImpCaptureStyle == LambdaScopeInfo::ImpCap_LambdaByref);
11016 if (ByRef) {
11068 if (ByRef)
11083 CSI->addCapture(Var, /*IsBlock=*/false, ByRef, Nested, Loc,
H A DSemaDeclAttr.cpp2529 type = BlocksAttr::ByRef;
/external/clang/lib/CodeGen/
H A DCodeGenFunction.h1406 llvm::Value *GetAddrOfBlockDecl(const VarDecl *var, bool ByRef);
/external/ceres-solver/internal/ceres/gtest/
H A Dgtest.h676 // ByRef<T>::type is T if T is a reference; otherwise it's const T&.
678 struct ByRef { typedef const T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
680 struct ByRef<T&> { typedef T& type; }; // NOLINT struct in namespace:std::tr1::gtest_internal
682 // A handy wrapper for ByRef.
683 #define GTEST_BY_REF_(T) typename ::std::tr1::gtest_internal::ByRef<T>::type
/external/ceres-solver/internal/ceres/gmock/
H A Dgmock.h1710 // Allows the expression ByRef(x) to be printed as a reference to x.
1932 // suppose 'derived' is an object of type Derived, ByRef(derived)
1936 // ByRef<const Base>(derived)
1938 inline internal::ReferenceWrapper<T> ByRef(T& l_value) { // NOLINT function in namespace:testing
2380 // ByRef(a2) instead of a2 in the above expression.
4330 // pass an argument by reference, wrap it inside ByRef(). For
4333 // InvokeArgument<1>(5, string("Hello"), ByRef(foo))
4338 // 2. If the callable takes an argument by reference but ByRef() is

Completed in 405 milliseconds