/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-spec-builders_test.cc | 171 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 D | gmock_link_test.h | 168 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 D | gmock-function-mocker_test.cc | 66 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 D | gmock_output_test_.cc | 49 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 D | gmock_stress_test.cc | 69 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 D | gmock_leak_test_.cc | 39 using ::testing::Return; 74 ON_CALL(*foo, DoThis()).WillByDefault(Return()); in TEST() 87 ON_CALL(*foo1, DoThis()).WillByDefault(Return()); in TEST()
|
H A D | gmock-actions_test.cc | 659 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 D | Thunk.h | 162 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 D | zfsd_unittest.cc | 437 .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 D | actions.md | 11 | `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 D | mocking.md | 242 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 D | ofw_if.m | 51 * @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 D | check_y2k.c | 112 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 D | math.shlib | 17 # 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 D | ClangCommentCommandInfoEmitter.cpp | 67 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 D | divmodhi4.S | 49 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 D | linker_if.m | 89 # 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 D | AVRRegisterInfo.td | 116 // 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 D | magic.h.in | 37 #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 D | CalledValuePropagation.cpp | 50 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 D | bhndb_bus_if.m | 77 * 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 D | platform_if.m | 119 * @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 D | pcib_if.m | 55 # 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 D | gmock_for_dummies.md | 327 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 D | user_input.subr | 199 # 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 …]
|