Home
last modified time | relevance | path

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

12345678910>>...13

/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/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…
H A Dmocking.md242 using ::testing::Return;
245 .WillOnce(Return(1))
246 .WillOnce(Return(2))
247 .WillOnce(Return(3));
275 using ::testing::Return;
278 .WillRepeatedly(Return("John Doe")); // Return "John Doe" on all calls
281 .WillOnce(Return(42)) // Return 42 on the first call
282 .WillRepeatedly(Return(7)); // Return 7 on all subsequent calls
367 using ::testing::Return;
371 .WillByDefault(Return(true));
[all …]
/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/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.shlib17 # Return 0 if the percentage difference between $a and $b is $percent or
18 # greater. Return 1 if the percentage is lower or if we would divide by
44 # Return 0 if value is within +/-tolerance of target.
45 # Return 1 if value exceeds our tolerance.
65 # Return 0 if the human readable string of the form <value>[suffix] can
/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/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/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.td116 // Return value and argument registers.
132 // Return value and arguments.
146 // Return value and arguments.
165 // Return value and arguments.
173 // Return value and arguments.
184 // Return value and arguments.
194 // Return value and arguments.
/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()
209 else if (Key.getInt() == IPOGrouping::Return) in PrintLatticeKey()
248 auto RetF = CVPLatticeKey(F, IPOGrouping::Return); in visitReturn()
281 auto RetF = CVPLatticeKey(F, IPOGrouping::Return); in visitCallBase()
/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb_bus_if.m77 * Return a generic hardware configuration to be used by
105 * Return the hardware specification table to be used when identifying the
117 * Return the hardware priority table to be used when allocating bridge
129 * Return true if the hardware required by @p core is unpopulated or
/freebsd/sys/powerpc/powerpc/
H A Dplatform_if.m119 * @brief Return the system's physical memory map.
140 * @brief Return the system's physical memory map.
155 * @brief Return the maximum address accessible in real mode
232 * @brief Return SMP topology
264 * @brief Return the NUMA domain for the given device tree node. Always returns
/freebsd/sys/dev/pci/
H A Dpcib_if.m55 # Return the number of slots on the attached PCI bus.
63 # Return the number of functions on the attached PCI bus.
169 # Return the device power state to be used during a system sleep state
179 # Return the PCI Routing Identifier (RID) for the device.
198 # Return non-zero if PCI ARI is enabled, or zero otherwise
/freebsd/contrib/googletest/docs/
H A Dgmock_for_dummies.md327 using ::testing::Return;
331 .WillOnce(Return(100))
332 .WillOnce(Return(150))
333 .WillRepeatedly(Return(200));
452 using ::testing::Return;
455 .WillOnce(Return(100))
456 .WillOnce(Return(200))
457 .WillOnce(Return(300));
465 using ::testing::Return;
468 .WillOnce(Return(100))
[all …]
/freebsd/usr.sbin/bsdconfig/usermgmt/share/
H A Duser_input.subr199 # Return if user has either pressed ESC or chosen Cancel/No
250 # Return to previous menu if user either
268 # Return to previous menu if user either
310 # Return if user has either pressed ESC or chosen Cancel/No
391 # Return if user either pressed ESC or chose Cancel/No
405 # Return if user either pressed ESC or chose Cancel/No
447 # Return if user has either pressed ESC or chosen Cancel/No
465 # Return if user has either pressed ESC or chosen Cancel/No
483 # Return if user has either pressed ESC or chosen Cancel/No
501 # Return if user has either pressed ESC or chosen Cancel/No
[all …]

12345678910>>...13