Home
last modified time | relevance | path

Searched refs:Return (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-spec-builders_test.cc171 ON_CALL(cc, Method()).WillByDefault(Return(42)); in TEST()
185 EXPECT_CALL(cc, Method()).WillOnce(Return(42)); in TEST()
214 ON_CALL(a, DoA(5)).WillByDefault(Return()); in TEST()
215 ON_CALL(a, DoA(_)).With(_).WillByDefault(Return()); in TEST()
226 .WillByDefault(Return(Result())); in TEST()
247 ON_CALL(a, DoA(5)).WillByDefault(Return()).WillByDefault(Return()); in TEST()
306 EXPECT_CALL(a, DoA(2)).WillOnce(Return()).With(_); in TEST()
316 EXPECT_CALL(a, DoA(1)).WillOnce(Return()); in TEST()
318 EXPECT_CALL(a, DoA(2)).WillOnce(Return()).WillRepeatedly(Return()); in TEST()
391 EXPECT_CALL(a, DoA(1)).WillOnce(Return()).InSequence(s); in TEST()
[all …]
H A Dgmock_link_test.h168 using testing::Return;
251 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(Return()); in TEST()
260 EXPECT_CALL(mock, StringFromString(_)).WillOnce(Return(&ch)); in TEST()
268 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(Return()); in TEST()
380 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(WithoutArgs(Return())); in TEST()
390 .WillOnce(DoAll(SetArgPointee<0>('y'), Return())); in TEST()
399 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST()
408 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(IgnoreResult(Return(42))); in TEST()
483 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST()
490 ON_CALL(mock, VoidFromString(A<char*>())).WillByDefault(Return()); in TEST()
[all …]
H A Dgmock-function-mocker_test.cc66 using testing::Return;
305 .WillOnce(Return(1)); in TYPED_TEST()
313 EXPECT_CALL(this->mock_foo_, Unary(Eq(2))).Times(2).WillOnce(Return(true)); in TYPED_TEST()
321 EXPECT_CALL(this->mock_foo_, Binary(2, _)).WillOnce(Return(3)); in TYPED_TEST()
330 .WillOnce(Return(5)); in TYPED_TEST()
339 .WillOnce(Return(true)); in TYPED_TEST()
348 .WillOnce(Return("Hello")); in TYPED_TEST()
363 .WillOnce(Return(1)); in TYPED_TEST()
365 .WillOnce(Return(2)); in TYPED_TEST()
374 .WillOnce(Return(1)); in TYPED_TEST()
[all …]
H A Dgmock_output_test_.cc49 using testing::Return;
90 EXPECT_CALL(foo_, Bar2(_, _)).Times(2).WillOnce(Return(false)); in TEST_F()
201 ON_CALL(foo_, Bar2(_, _)).WillByDefault(Return(true)); // Default action #1 in TEST_F()
202 ON_CALL(foo_, Bar2(1, _)).WillByDefault(Return(false)); // Default action #2 in TEST_F()
211 ON_CALL(foo_, Bar2(_, _)).WillByDefault(Return(true)); // Default action #1 in TEST_F()
212 ON_CALL(foo_, Bar2(1, _)).WillByDefault(Return(false)); // Default action #2 in TEST_F()
224 ON_CALL(foo_, Bar2(_, _)).WillByDefault(Return(true)); // Default action #1 in TEST_F()
225 ON_CALL(foo_, Bar2(1, _)).WillByDefault(Return(false)); // Default action #2 in TEST_F()
232 ON_CALL(foo_, Bar2(_, _)).WillByDefault(Return(true)); // Default action #1 in TEST_F()
234 EXPECT_CALL(foo_, Bar2(_, _)).Times(2).WillOnce(Return(false)); in TEST_F()
[all …]
H A Dgmock_stress_test.cc69 ON_CALL(foo, Bar(_)).WillByDefault(Return(1)); in TestConcurrentMockObjects()
70 ON_CALL(foo, Baz(_, _)).WillByDefault(Return('b')); in TestConcurrentMockObjects()
71 ON_CALL(foo, Baz(_, "you")).WillByDefault(Return('a')); in TestConcurrentMockObjects()
76 .WillOnce(Return('z')) in TestConcurrentMockObjects()
116 ON_CALL(foo, Bar(_)).WillByDefault(Return(1)); in TestConcurrentCallsOnSameObject()
117 EXPECT_CALL(foo, Baz(_, "b")).Times(kRepeat).WillRepeatedly(Return('a')); in TestConcurrentCallsOnSameObject()
H A Dgmock_leak_test_.cc39 using ::testing::Return;
74 ON_CALL(*foo, DoThis()).WillByDefault(Return()); in TEST()
87 ON_CALL(*foo1, DoThis()).WillByDefault(Return()); in TEST()
H A Dgmock-actions_test.cc659 const Action<void(int)> ret = Return(); // NOLINT in TEST()
665 Action<int()> ret = Return(1); // NOLINT in TEST()
668 ret = Return(-5); in TEST()
674 Action<const char*()> a1 = Return("Hello"); in TEST()
677 Action<std::string()> a2 = Return("world"); in TEST()
701 .WillOnce(Return(std::vector<int>{17, 19, 23})) in TEST()
702 .WillRepeatedly(Return(std::vector<int>{29, 31, 37})); in TEST()
738 EXPECT_CALL(mock, Call).WillOnce(Return(In())); in TEST()
754 EXPECT_CALL(mock, Call).WillOnce(Return(17)).WillRepeatedly(Return(19)); in TEST()
785 using RA = decltype(Return(std::string())); in TEST()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DThunk.h162 ReturnAdjustment Return; member
177 ThunkInfo(const ThisAdjustment &This, const ReturnAdjustment &Return,
179 : This(This), Return(Return), Method(Method), ThisType(ThisT) {} in This()
182 return LHS.This == RHS.This && LHS.Return == RHS.Return &&
187 return This.isEmpty() && Return.isEmpty() && Method == nullptr; in isEmpty()
/freebsd/cddl/usr.sbin/zfsd/tests/
H A Dzfsd_unittest.cc437 .WillByDefault(::testing::Return(Guid(123))); in SetUp()
439 .WillByDefault(::testing::Return(string("/dev/da999"))); in SetUp()
441 .WillByDefault(::testing::Return(Guid(456))); in SetUp()
443 .WillByDefault(::testing::Return(VDEV_STATE_HEALTHY)); in SetUp()
536 .WillRepeatedly(::testing::Return(true)); in TEST_F()
602 .WillRepeatedly(::testing::Return(true)); in TEST_F()
651 .WillRepeatedly(::testing::Return(true)); in TEST_F()
714 .WillByDefault(::testing::Return(Guid(123))); in SetUp()
716 .WillByDefault(::testing::Return(Guid(456))); in SetUp()
718 .WillByDefault(::testing::Return(VDEV_STATE_HEALTHY)); in SetUp()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DArgumentsAdjusters.cpp121 CommandLineArguments Return(Args); in getInsertArgumentAdjuster() local
125 I = llvm::find(Return, "--"); in getInsertArgumentAdjuster()
127 I = Return.begin(); in getInsertArgumentAdjuster()
131 Return.insert(I, Extra.begin(), Extra.end()); in getInsertArgumentAdjuster()
132 return Return; in getInsertArgumentAdjuster()
/freebsd/contrib/googletest/docs/reference/
H A Dactions.md11 | `Return()` | Return from a `void` mock function. |
12 | `Return(value)` | Return `value`. If the type of `value` is different to th…
13 | `ReturnArg<N>()` | Return the `N`-th (0-based) argument. |
14 | `ReturnNew<T>(a1, ..., ak)` | Return `new T(a1, ..., ak)`; a different object is creat…
15 | `ReturnNull()` | Return a null pointer. |
16 | `ReturnPointee(ptr)` | Return the value pointed to by `ptr`. |
17 | `ReturnRef(variable)` | Return a reference to `variable`. |
18 | `ReturnRefOfCopy(value)` | Return a reference to a copy of `value`; the copy lives as l…
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInterleavedAccess.cpp254 Value *Return; in lowerDeinterleaveIntrinsicToLoad() local
261 Return = Builder.CreateIntrinsic(FixedVlsegIntrIds[Factor - 2], in lowerDeinterleaveIntrinsicToLoad()
287 Return = PoisonValue::get(StructType::get(LI->getContext(), AggrTypes)); in lowerDeinterleaveIntrinsicToLoad()
292 Return = Builder.CreateInsertValue(Return, VecExtract, i); in lowerDeinterleaveIntrinsicToLoad()
302 Builder.CreateExtractValue(Return, {static_cast<unsigned>(Idx)}); in lowerDeinterleaveIntrinsicToLoad()
455 Value *Return = nullptr; in lowerInterleavedVPLoad() local
457 Return = Builder.CreateIntrinsic(FixedVlsegIntrIds[Factor - 2], in lowerInterleavedVPLoad()
487 Return = PoisonValue::get(StructType::get(Load->getContext(), AggrTypes)); in lowerInterleavedVPLoad()
493 Return = Builder.CreateInsertValue(Return, VecExtract, i); in lowerInterleavedVPLoad()
503 Builder.CreateExtractValue(Return, {static_cast<unsigned>(Idx)}); in lowerInterleavedVPLoad()
/freebsd/sys/dev/ofw/
H A Dofw_if.m51 * @brief Return next sibling of node.
61 * @brief Return parent of node.
71 * @brief Return first child of node.
81 * @brief Return package corresponding to instance.
91 * @brief Return length of node property.
165 * @brief Return phandle for named device.
175 * @brief Return path for node instance.
189 * @brief Return path for node.
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DClangCommentCommandInfoEmitter.cpp67 std::string Return; in EmitClangCommentCommandInfo() local
68 raw_string_ostream(Return) << "return &Commands[" << i << "];"; in EmitClangCommentCommandInfo()
69 Matches.emplace_back(std::move(Name), std::move(Return)); in EmitClangCommentCommandInfo()
/freebsd/contrib/ntp/ntpd/
H A Dcheck_y2k.c112 long Return; in Days() local
114 Return = Year * 365; /* first aproximation to the value */ in Days()
118 Return += (Year+3) / 4; /* add in (too many) leap days */ in Days()
119 Return -= (Year-1) / 100; /* reduce by (too many) centurys */ in Days()
120 Return += (Year-1) / 400; /* get final answer */ in Days()
123 return Return; in Days()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dmath.shlib18 # Return 0 if the percentage difference between $a and $b is $percent or
19 # greater. Return 1 if the percentage is lower or if we would divide by
45 # Return 0 if value is within +/-tolerance of target.
46 # Return 1 if value exceeds our tolerance.
66 # Return 0 if the human readable string of the form <value>[suffix] can
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Interfaces/
H A DCIROpInterfaces.td29 "Return the operand at index 'i', accounts for indirect call or "
34 "Return the number of operands, accounts for indirect call or "
37 InterfaceMethod<"Return whether the callee is nothrow",
39 InterfaceMethod<"Return the side effects of the call operation",
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsCCState.h189 bool Return = CCState::CheckReturn(ArgsFlags, Fn); in CheckReturn() local
193 return Return; in CheckReturn()
200 bool Return = CCState::CheckReturn(ArgsFlags, Fn); in CheckCallReturn() local
204 return Return; in CheckCallReturn()
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/avr/
H A Ddivmodhi4.S49 ret ; Return quotient via R23:R22 and remainder via R25:R24.
57 ret ; Return quotient via R23:R22 and remainder via R25:r24.
/freebsd/crypto/krb5/src/util/ss/
H A Dstd_rqs.ct37 "Return the name of this subsystem.",
42 "Return the version of this subsystem.",
/freebsd/sys/kern/
H A Dlinker_if.m89 # Search for a linker set in a file. Return a pointer to the first
121 # Return ENOENT if typename is not found, otherwise zero.
131 # Return ENOENT if either the symbol or its CTF
142 # Get the symbol table, returning it in **symtab. Return the
151 # Get the string table, returning it in *strtab. Return the
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRRegisterInfo.td115 (// Return value and argument registers.
130 (// Return value and arguments.
143 (// Return value and arguments.
161 (// Return value and arguments.
168 (// Return value and arguments.
178 (// Return value and arguments.
187 (// Return value and arguments.
/freebsd/crypto/krb5/src/ccapi/common/win/
H A Dccs_reply.Idl46 [out] long* status ); /* Return code */
53 [out] long* status ); /* Return code */
58 [out] long* status ); /* Return code */
/freebsd/contrib/file/src/
H A Dmagic.h.in37 #define MAGIC_MIME_TYPE 0x0000010 /* Return the MIME type */
38 #define MAGIC_CONTINUE 0x0000020 /* Return all matches */
43 #define MAGIC_MIME_ENCODING 0x0000400 /* Return the MIME encoding */
45 #define MAGIC_APPLE 0x0000800 /* Return the Apple creator/type */
46 #define MAGIC_EXTENSION 0x1000000 /* Return a /-separated list of
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCalledValuePropagation.cpp50 enum class IPOGrouping { Register, Return, Memory }; enumerator
137 case IPOGrouping::Return: in ComputeLatticeVal()
210 else if (Key.getInt() == IPOGrouping::Return) in PrintLatticeKey()
250 auto RetF = CVPLatticeKey(F, IPOGrouping::Return); in visitReturn()
284 auto RetF = CVPLatticeKey(F, IPOGrouping::Return); in visitCallBase()

12345678910>>...14