Home
last modified time | relevance | path

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

12345678910>>...35

/openbmc/phosphor-ipmi-flash/tools/test/
H A Dtools_updater_unittest.cpp23 using ::testing::Return;
41 Return(std::vector<std::string>({ipmi_flash::staticLayoutBlobId}))); in TEST_F()
49 .WillOnce(Return(std::vector<std::string>())); in TEST_F()
66 .WillOnce(Return(ipmi_flash::FirmwareFlags::UpdateFlags::lpc)); in TEST_F()
69 .WillOnce(Return(session)); in TEST_F()
72 .WillOnce(Return(true)); in TEST_F()
90 .WillOnce(Return(ipmi_flash::FirmwareFlags::UpdateFlags::lpc)); in TEST_F()
111 .WillRepeatedly(Return(ipmi_flash::FirmwareFlags::UpdateFlags::lpc)); in TEST_F()
114 .WillRepeatedly(Return(session)); in TEST_F()
117 .WillRepeatedly(Return(false)); in TEST_F()
[all …]
H A Dio_unittest.cpp18 using ::testing::Return;
32 EXPECT_CALL(sys_mock, open(_, _)).WillOnce(Return(-1)); in TEST_F()
41 EXPECT_CALL(sys_mock, open(_, _)).WillOnce(Return(fd)); in TEST_F()
42 EXPECT_CALL(sys_mock, getpagesize()).WillOnce(Return(4096)); in TEST_F()
43 EXPECT_CALL(sys_mock, mmap(0, _, _, _, fd, _)).WillOnce(Return(MAP_FAILED)); in TEST_F()
54 EXPECT_CALL(sys_mock, open(_, _)).WillOnce(Return(fd)); in TEST_F()
55 EXPECT_CALL(sys_mock, getpagesize()).WillOnce(Return(4096)); in TEST_F()
56 EXPECT_CALL(sys_mock, mmap(0, _, _, _, fd, _)).WillOnce(Return(&source)); in TEST_F()
67 EXPECT_CALL(sys_mock, open(_, _)).WillOnce(Return(-1)); in TEST_F()
76 EXPECT_CALL(sys_mock, open(_, _)).WillOnce(Return(fd)); in TEST_F()
[all …]
/openbmc/phosphor-pid-control/test/
H A Ddbus_passive_unittest.cpp28 using ::testing::Return;
77 .WillOnce(Return("asdf")); in DbusPassiveTestObj()
92 .WillOnce(Return(false)); in DbusPassiveTestObj()
161 .WillOnce(Return(nullptr)); in TEST_F()
189 .WillOnce(Return(0)); in TEST_F()
193 .WillOnce(Return(0)) in TEST_F()
194 .WillOnce(Return(1)); // So it exits the loop after reading one pair. in TEST_F()
199 .WillOnce(Return(0)); in TEST_F()
203 .WillOnce(Return(1)); in TEST_F()
206 .WillOnce(Return(0)); in TEST_F()
[all …]
H A Dpid_fancontroller_unittest.cpp26 using ::testing::Return;
71 EXPECT_CALL(z, getCachedValue(StrEq("fan0"))).WillOnce(Return(0)); in TEST()
72 EXPECT_CALL(z, getCachedValue(StrEq("fan1"))).WillOnce(Return(0)); in TEST()
89 EXPECT_CALL(z, getCachedValue(StrEq("fan0"))).WillOnce(Return(-1)); in TEST()
90 EXPECT_CALL(z, getCachedValue(StrEq("fan1"))).WillOnce(Return(-1)); in TEST()
108 EXPECT_CALL(z, getCachedValue(StrEq("fan0"))).WillOnce(Return(10.0)); in TEST()
109 EXPECT_CALL(z, getCachedValue(StrEq("fan1"))).WillOnce(Return(30.0)); in TEST()
110 EXPECT_CALL(z, getCachedValue(StrEq("fan2"))).WillOnce(Return(5.0)); in TEST()
138 EXPECT_CALL(z, getMaxSetPointRequest()).WillOnce(Return(10.0)); in TEST()
144 EXPECT_CALL(z, getMaxSetPointRequest()).WillOnce(Return(5.0)); in TEST()
[all …]
/openbmc/sdeventplus/test/
H A Devent.cpp18 using testing::Return;
31 .WillOnce(Return(expected_event)); in TEST_F()
36 EXPECT_CALL(mock, sd_event_unref(expected_event)).WillOnce(Return(nullptr)); in TEST_F()
45 EXPECT_CALL(mock, sd_event_unref(expected_event)).WillOnce(Return(nullptr)); in TEST_F()
58 EXPECT_CALL(mock, sd_event_unref(expected_event)).WillOnce(Return(nullptr)); in TEST_F()
72 .WillOnce(Return(expected_event)); in TEST_F()
78 .WillOnce(Return(nullptr)) in TEST_F()
79 .WillOnce(Return(nullptr)); in TEST_F()
85 .WillOnce(DoAll(SetArgPointee<0>(expected_event), Return(0))); in TEST_F()
90 EXPECT_CALL(mock, sd_event_unref(expected_event)).WillOnce(Return(nullptr)); in TEST_F()
[all …]
/openbmc/phosphor-psu-code-mgmt/test/
H A Dtest_item_updater.cpp14 using ::testing::Return;
37 .WillByDefault(Return(any(PropertyType(true)))); in TestItemUpdater()
88 .WillOnce(Return(std::vector<std::string>({psuPath}))); in TEST_F()
90 .WillOnce(Return(service)); in TEST_F()
93 .WillOnce(Return(any(PropertyType(false)))); // not present in TEST_F()
112 .WillOnce(Return(std::vector<std::string>({psuPath}))); in TEST_F()
114 .WillOnce(Return(service)); in TEST_F()
116 .WillOnce(Return(std::string(version))); in TEST_F()
119 .WillOnce(Return(any(PropertyType(true)))); // present in TEST_F()
121 .WillOnce(Return(std::string("dummyModel"))); in TEST_F()
[all …]
/openbmc/gpioplus/test/internal/
H A Dfd.cpp32 using testing::Return;
50 EXPECT_CALL(mock, close(expected_fd)).WillOnce(Return(0)); in TEST_F()
61 EXPECT_CALL(mock, dup(expected_fd)).WillOnce(Return(expected_fd2)); in TEST_F()
66 EXPECT_CALL(mock, close(expected_fd2)).WillOnce(Return(0)); in TEST_F()
72 .WillOnce(DoAll(Assign(&errno, EINVAL), Return(-1))); in TEST_F()
97 .WillOnce(DoAll(Assign(&errno, EINVAL), Return(-1))); in TEST_F()
107 EXPECT_CALL(mock, open(path, flags)).WillOnce(Return(expected_fd)); in TEST_F()
112 EXPECT_CALL(mock, close(expected_fd)).WillOnce(Return(0)); in TEST_F()
120 .WillOnce(DoAll(Assign(&errno, EBUSY), Return(-1))); in TEST_F()
128 EXPECT_CALL(mock, dup(expected_fd)).WillOnce(Return(expected_fd2)); in TEST_F()
[all …]
/openbmc/sdeventplus/test/source/
H A Dbase.cpp30 using testing::Return;
81 .WillOnce(Return(nullptr)); in make_event()
93 .WillOnce(Return(event.get())); in make_base()
100 .WillOnce(DoAll(SaveArg<1>(&destroy), Return(0))); in make_base()
102 .WillOnce(DoAll(SaveArg<1>(&userdata), Return(nullptr))); in make_base()
106 .WillRepeatedly(Return(userdata)); in make_base()
118 .WillOnce(Return(0)); in set_prepare_placeholder()
136 .WillOnce(Return(nullptr)); in expect_base_destruct()
138 .WillOnce(Return(nullptr)); in expect_base_destruct()
145 .WillOnce(Return(expected_event)); in TEST_F()
[all …]
H A Dio.cpp25 using testing::Return;
45 .WillOnce(Return(nullptr)); in make_event()
54 .WillOnce(Return(nullptr)); in expect_destruct()
56 .WillOnce(Return(nullptr)); in expect_destruct()
66 .WillOnce(Return(expected_event)); in TEST_F()
71 Return(0))); in TEST_F()
78 .WillOnce(DoAll(SaveArg<1>(&destroy), Return(0))); in TEST_F()
81 .WillOnce(DoAll(SaveArg<1>(&userdata), Return(nullptr))); in TEST_F()
118 .WillOnce(Return(-EINVAL)); in TEST_F()
141 .WillOnce(Return(expected_event)); in SetUp()
[all …]
H A Devent.cpp25 using testing::Return;
45 .WillOnce(Return(nullptr)); in make_event()
54 .WillOnce(Return(nullptr)); in expect_destruct()
56 .WillOnce(Return(nullptr)); in expect_destruct()
63 .WillOnce(Return(expected_event)); in TEST_F()
70 .WillOnce(DoAll(SaveArg<1>(&destroy), Return(0))); in TEST_F()
73 .WillOnce(DoAll(SaveArg<1>(&userdata), Return(nullptr))); in TEST_F()
81 Return(0))); in TEST_F()
105 .WillOnce(Return(expected_event)); in TEST_F()
112 .WillOnce(DoAll(SaveArg<1>(&destroy), Return(0))); in TEST_F()
[all …]
H A Dsignal.cpp26 using testing::Return;
46 .WillOnce(Return(nullptr)); in make_event()
55 .WillOnce(Return(nullptr)); in expect_destruct()
57 .WillOnce(Return(nullptr)); in expect_destruct()
66 .WillOnce(Return(expected_event)); in TEST_F()
71 Return(0))); in TEST_F()
78 .WillOnce(DoAll(SaveArg<1>(&destroy), Return(0))); in TEST_F()
81 .WillOnce(DoAll(SaveArg<1>(&userdata), Return(nullptr))); in TEST_F()
117 .WillOnce(Return(-EINVAL)); in TEST_F()
140 .WillOnce(Return(expected_event)); in SetUp()
[all …]
H A Dchild.cpp26 using testing::Return;
46 .WillOnce(Return(nullptr)); in make_event()
55 .WillOnce(Return(nullptr)); in expect_destruct()
57 .WillOnce(Return(nullptr)); in expect_destruct()
67 .WillOnce(Return(expected_event)); in TEST_F()
72 Return(0))); in TEST_F()
79 .WillOnce(DoAll(SaveArg<1>(&destroy), Return(0))); in TEST_F()
82 .WillOnce(DoAll(SaveArg<1>(&userdata), Return(nullptr))); in TEST_F()
117 .WillOnce(Return(-EINVAL)); in TEST_F()
141 .WillOnce(Return(expected_event)); in SetUp()
[all …]
H A Dtime.cpp26 using testing::Return;
46 .WillOnce(Return(nullptr)); in make_event()
55 .WillOnce(Return(nullptr)); in expect_time_destroy()
56 EXPECT_CALL(mock, sd_event_unref(event)).WillOnce(Return(nullptr)); in expect_time_destroy()
72 .WillOnce(Return(expected_event)); in TEST_F()
78 Return(0))); in TEST_F()
85 .WillOnce(DoAll(SaveArg<1>(&destroy), Return(0))); in TEST_F()
88 .WillOnce(DoAll(SaveArg<1>(&userdata), Return(nullptr))); in TEST_F()
122 .WillOnce(Return(-ENOSYS)); in TEST_F()
140 .WillOnce(Return(expected_event)); in SetUp()
[all …]
/openbmc/phosphor-power/phosphor-power-supply/test/
H A Dpower_supply_tests.cpp20 using ::testing::Return;
45 .WillOnce(Return(expectations.statusWordValue)); in setPMBusExpectations()
54 .WillOnce(Return(expectations.statusInputValue)); in setPMBusExpectations()
57 .WillOnce(Return(expectations.statusMFRValue)); in setPMBusExpectations()
60 .WillOnce(Return(expectations.statusCMLValue)); in setPMBusExpectations()
64 .WillOnce(Return("status0_vout")); in setPMBusExpectations()
67 .WillOnce(Return(expectations.statusVOUTValue)); in setPMBusExpectations()
70 .WillOnce(Return(expectations.statusIOUTValue)); in setPMBusExpectations()
73 .WillOnce(Return(expectations.statusFans12Value)); in setPMBusExpectations()
76 .WillOnce(Return(expectations.statusTempValue)); in setPMBusExpectations()
[all …]
/openbmc/phosphor-ipmi-flash/bmc/log-handler/test/
H A Dlog_read_unittest.cpp30 using ::testing::Return;
58 Return(true))); in TEST_F()
60 .WillOnce(Return(ActionStatus::success)); in TEST_F()
61 EXPECT_CALL(*im.at("blob0"), open(_, std::ios::in)).WillOnce(Return(true)); in TEST_F()
63 .WillOnce(Return(vector1)); in TEST_F()
78 EXPECT_CALL(*tm.at("blob0"), trigger()).WillOnce(Return(true)); in TEST_F()
83 .WillOnce(Return(ActionStatus::success)); in TEST_F()
84 EXPECT_CALL(*im.at("blob0"), open(_, std::ios::in)).WillOnce(Return(true)); in TEST_F()
86 .WillOnce(Return(vector1)); in TEST_F()
90 EXPECT_CALL(*tm.at("blob0"), trigger()).WillOnce(Return(true)); in TEST_F()
[all …]
/openbmc/phosphor-ipmi-flash/bmc/version-handler/test/
H A Dversion_read_unittest.cpp16 using ::testing::Return;
44 Return(true))); in TEST_F()
46 .WillOnce(Return(ActionStatus::success)); in TEST_F()
47 EXPECT_CALL(*im.at("blob0"), open(_, std::ios::in)).WillOnce(Return(true)); in TEST_F()
49 .WillOnce(Return(vector1)); in TEST_F()
64 EXPECT_CALL(*tm.at("blob0"), trigger()).WillOnce(Return(true)); in TEST_F()
69 .WillOnce(Return(ActionStatus::success)); in TEST_F()
70 EXPECT_CALL(*im.at("blob0"), open(_, std::ios::in)).WillOnce(Return(true)); in TEST_F()
72 .WillOnce(Return(vector1)); in TEST_F()
76 EXPECT_CALL(*tm.at("blob0"), trigger()).WillOnce(Return(true)); in TEST_F()
[all …]
/openbmc/phosphor-led-sysfs/test/
H A Dphysical.cpp73 using ::testing::Return;
80 ON_CALL(*led, getTrigger()).WillByDefault(Return("none")); in TEST()
90 EXPECT_CALL(*led, getTrigger()).WillRepeatedly(Return("none")); in TEST()
91 EXPECT_CALL(*led, getBrightness()).WillOnce(Return(127)); in TEST()
92 EXPECT_CALL(*led, getMaxBrightness()).WillOnce(Return(127)); in TEST()
102 EXPECT_CALL(*led, getTrigger()).WillRepeatedly(Return("none")); in TEST()
103 EXPECT_CALL(*led, getBrightness()).WillOnce(Return(0)); in TEST()
104 EXPECT_CALL(*led, getMaxBrightness()).WillOnce(Return(0)); in TEST()
114 EXPECT_CALL(*led, getTrigger()).WillRepeatedly(Return("none")); in TEST()
115 EXPECT_CALL(*led, getBrightness()).WillOnce(Return(0)); in TEST()
[all …]
/openbmc/google-ipmi-sys/test/
H A Dhandler_unittest.cpp41 using testing::Return;
131 using ::testing::Return;
207 .WillOnce(DoAll(SetArgPointee<1>(method), Return(0))); in ExpectGetManagedObjects()
216 Return(0))); in ExpectGetManagedObjects()
220 .WillOnce(Return(1)); in ExpectGetManagedObjects()
222 EXPECT_CALL(mock, sd_bus_message_at_end(msg, 0)).WillOnce(Return(0)); in ExpectGetManagedObjects()
226 .WillOnce(Return(1)); in ExpectGetManagedObjects()
230 .WillOnce(DoAll(AssignReadVal<const char*>(obj_path), Return(1))); in ExpectGetManagedObjects()
234 .WillOnce(Return(1)); in ExpectGetManagedObjects()
236 EXPECT_CALL(mock, sd_bus_message_at_end(msg, 0)).WillOnce(Return(0)); in ExpectGetManagedObjects()
[all …]
/openbmc/phosphor-hwmon/test/
H A Dsensor_unittest.cpp42 using ::testing::Return;
56 .WillOnce(Return("")); in TEST_F()
57 EXPECT_CALL(env::mockEnv, get(StrEq("GPIO_temp5"))).WillOnce(Return("")); in TEST_F()
60 EXPECT_CALL(env::mockEnv, get(StrEq("GAIN_temp5"))).WillOnce(Return("")); in TEST_F()
61 EXPECT_CALL(env::mockEnv, get(StrEq("OFFSET_temp5"))).WillOnce(Return("")); in TEST_F()
63 .WillOnce(Return("")); in TEST_F()
88 .WillOnce(Return("chipA")); in TEST_F()
89 EXPECT_CALL(env::mockEnv, get(StrEq("GPIO_temp5"))).WillOnce(Return("5")); in TEST_F()
97 EXPECT_CALL(env::mockEnv, get(StrEq("GAIN_temp5"))).WillOnce(Return("")); in TEST_F()
98 EXPECT_CALL(env::mockEnv, get(StrEq("OFFSET_temp5"))).WillOnce(Return("")); in TEST_F()
[all …]
/openbmc/estoraged/src/test/
H A Destoraged_test.cpp33 using ::testing::Return;
85 EXPECT_CALL(*cryptIface, cryptGetDir).WillOnce(Return(testCryptDir)); in SetUp()
143 .WillOnce(Return(0)); in TEST_F()
146 .WillOnce(Return(false)); in TEST_F()
149 .WillOnce(Return(true)); in TEST_F()
154 .WillOnce(Return(0)); in TEST_F()
157 .WillOnce(Return(0)); in TEST_F()
160 .WillOnce(Return(true)); in TEST_F()
190 .WillOnce(Return(0)); in TEST_F()
193 .WillOnce(Return(true)); in TEST_F()
[all …]
/openbmc/estoraged/src/test/erase/
H A Dcrypto_test.cpp26 using ::testing::Return;
56 .WillOnce(Return(0)); in TEST_F()
59 .WillOnce(Return(1)); in TEST_F()
62 .WillOnce(Return(CRYPT_SLOT_ACTIVE_LAST)); in TEST_F()
77 .WillOnce(Return(0)); in TEST_F()
80 .WillOnce(Return(-1)); in TEST_F()
93 .WillOnce(Return(0)); in TEST_F()
96 .WillOnce(Return(0)); in TEST_F()
109 .WillOnce(Return(0)); in TEST_F()
112 .WillOnce(Return(32)); in TEST_F()
[all …]
H A Dzero_test.cpp25 using testing::Return;
137 .WillOnce(Return(shortDataSpan)) in TEST()
138 .WillOnce(Return(shortDataSpan)) in TEST()
139 .WillOnce(Return(restOfDataSpan)) in TEST()
140 .WillOnce(Return(shortDataSpan)); in TEST()
146 .WillOnce(Return(shortDataSpan)) in TEST()
147 .WillOnce(Return(shortDataSpan)) in TEST()
148 .WillOnce(Return(restOfDataSpan)) in TEST()
149 .WillOnce(Return(shortDataSpan)); in TEST()
172 .WillOnce(Return(shortDataSpan)) in TEST()
[all …]
/openbmc/libpldm/abi/x86_64/
H A Dgcc.dump65 'Return' => '100',
89 'Return' => '100',
119 'Return' => '100',
143 'Return' => '100',
183 'Return' => '100',
218 'Return' => '100',
242 'Return' => '100',
258 'Return' => '135',
270 'Return' => '5459',
302 'Return' => '5459',
[all …]
/openbmc/bios-bmc-smm-error-logger/test/
H A Dbuffer_test.cpp23 using ::testing::Return;
65 .WillOnce(Return(testRegionSize)); in TEST_F()
83 .WillOnce(Return(testRegionSize)); in TEST_F()
87 .WillOnce(Return(testQueueSize - 1)); in TEST_F()
100 .WillOnce(Return(testRegionSize)); in TEST_F()
102 .WillOnce(Return(testQueueSize)); in TEST_F()
105 EXPECT_CALL(*dataInterfaceMockPtr, write(0, _)).WillOnce(Return(0)); in TEST_F()
123 .WillOnce(Return(testRegionSize)); in TEST_F()
126 .WillOnce(Return(testQueueSize)); in TEST_F()
133 .WillOnce(Return(bufferHeaderSize)); in TEST_F()
[all …]
/openbmc/u-boot/arch/x86/include/asm/acpi/
H A Dglobutil.asl12 Return (Arg0)
14 Return (Arg1)
21 Return (Sizeof(Local0))
29 Return (BUFF)
50 Return (One)
53 Return (Ones)
60 Return (One)
63 Return (Ones)
65 Return (Zero)
82 Return (Zero)
[all …]

12345678910>>...35