Home
last modified time | relevance | path

Searched refs:Throw (Results 1 – 25 of 50) sorted by relevance

12

/openbmc/phosphor-ipmi-flash/tools/test/
H A Dtools_updater_unittest.cpp24 using ::testing::Throw;
93 .WillOnce(Throw(ipmiblob::BlobException("asdf"))); in TEST_F()
185 .WillOnce(Throw(ipmiblob::BlobException("asdf"))); in TEST_F()
195 .WillRepeatedly(Throw(ToolException("asdf"))); in TEST_F()
206 .WillOnce(Throw(ToolException("asdf"))) in TEST_F()
207 .WillOnce(Throw(ToolException("asdf"))) in TEST_F()
227 .WillOnce(Throw(ipmiblob::BlobException("asdf"))); in TEST_F()
262 .WillOnce(Throw(ipmiblob::BlobException("asdf"))); in TEST_F()
299 .WillOnce(Throw(ToolException("asdf"))) in TEST_F()
300 .WillOnce(Throw(ToolException("asdf"))) in TEST_F()
[all …]
H A Dtools_bt_unittest.cpp27 using ::testing::Throw;
109 .WillOnce(Throw(ipmiblob::BlobException("failure"))); in TEST_F()
/openbmc/phosphor-power/phosphor-regulators/test/
H A Dphase_fault_detection_tests.cpp54 using ::testing::Throw;
173 .WillOnce(Throw(error)) in TEST_F()
174 .WillOnce(Throw(error)) in TEST_F()
175 .WillOnce(Throw(error)) in TEST_F()
176 .WillOnce(Throw(error)) in TEST_F()
177 .WillOnce(Throw(error)) in TEST_F()
183 .WillOnce(Throw(error)) in TEST_F()
184 .WillOnce(Throw(error)) in TEST_F()
185 .WillOnce(Throw(error)) in TEST_F()
186 .WillOnce(Throw(error)) in TEST_F()
[all …]
H A Drule_tests.cpp35 using ::testing::Throw;
64 .WillOnce(Throw(std::logic_error{"Communication error"})); in TEST()
H A Dsensor_monitoring_tests.cpp55 using ::testing::Throw;
152 .WillRepeatedly(Throw( in TEST()
270 .WillRepeatedly(Throw(i2c::I2CException{"Failed to read word data", in TEST()
/openbmc/google-ipmi-sys/test/
H A Dmachine_unittest.cpp31 using ::testing::Throw;
42 EXPECT_CALL(hMock, getMachineName()).WillOnce(Throw(IpmiException(5))); in TEST()
/openbmc/phosphor-power/phosphor-regulators/test/actions/
H A Dnot_action_tests.cpp34 using ::testing::Throw;
55 .WillOnce(Throw(std::logic_error{"Communication error"})); in TEST()
H A Di2c_write_bit_action_tests.cpp39 using ::testing::Throw;
190 .WillOnce(Throw( in TEST()
248 .WillOnce(Throw( in TEST()
H A Di2c_write_byte_action_tests.cpp39 using ::testing::Throw;
162 .WillOnce(Throw( in TEST()
217 .WillOnce(Throw( in TEST()
H A Daction_utils_tests.cpp35 using ::testing::Throw;
66 .WillOnce(Throw(std::logic_error{"Communication error"})); in TEST()
H A Di2c_action_tests.cpp35 using ::testing::Throw;
148 Throw(i2c::I2CException{"Failed to open", "/dev/i2c-1", 0x70})); in TEST()
H A Dcompare_presence_action_tests.cpp38 using ::testing::Throw;
165 .WillOnce(Throw(std::runtime_error( in TEST()
H A Di2c_compare_bit_action_tests.cpp39 using ::testing::Throw;
180 .WillOnce(Throw( in TEST()
H A Dcompare_vpd_action_tests.cpp33 using ::testing::Throw;
147 Throw(std::runtime_error{"D-Bus error: Invalid object path"})); in TEST()
H A Drun_rule_action_tests.cpp37 using ::testing::Throw;
75 .WillOnce(Throw(std::logic_error{"Communication error"})); in TEST()
H A Dor_action_tests.cpp35 using ::testing::Throw;
77 .WillOnce(Throw(std::logic_error{"Communication error"})); in TEST()
H A Dand_action_tests.cpp35 using ::testing::Throw;
76 .WillOnce(Throw(std::logic_error{"Communication error"})); in TEST()
H A Di2c_compare_byte_action_tests.cpp39 using ::testing::Throw;
214 .WillOnce(Throw( in TEST()
H A Di2c_capture_bytes_action_tests.cpp39 using ::testing::Throw;
220 .WillOnce(Throw(i2c::I2CException{"Failed to read i2c block data", in TEST()
/openbmc/phosphor-logging/test/openpower-pels/
H A Dservice_indicators_test.cpp26 using ::testing::Throw;
337 .WillOnce(Throw(std::runtime_error("Fail"))); in TEST()
364 .WillOnce(Throw(std::runtime_error("Fail"))); in TEST()
383 .WillOnce(Throw(std::runtime_error("Fail"))); in TEST()
/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Ducd90x_device_tests.cpp40 using ::testing::Throw;
120 .WillOnce(Throw(std::runtime_error{"File does not exist"})); in TEST()
234 .WillOnce(Throw(std::runtime_error{"File does not exist"})); in TEST()
/openbmc/phosphor-user-manager/test/
H A Duser_mgr_test.cpp22 using ::testing::Throw;
110 .WillRepeatedly(Throw(UserNameDoesNotExist())); in TEST_F()
606 .WillOnce(testing::Throw( in TEST_F()
619 .WillOnce(testing::Throw( in TEST_F()
636 .WillOnce(testing::Throw( in TEST_F()
710 .WillOnce(testing::Throw( in TEST_F()
759 .WillOnce(testing::Throw( in TEST_F()
926 .WillOnce(testing::Throw( in TEST_F()
967 .WillOnce(testing::Throw( in TEST_F()
1142 .WillOnce(testing::Throw( in TEST_F()
[all …]
/openbmc/pldm/libpldmresponder/test/
H A Dlibpldmresponder_bios_integer_attribute_test.cpp19 using ::testing::Throw;
148 .WillOnce(Throw(std::exception())); in TEST_F()
H A Dlibpldmresponder_bios_string_attribute_test.cpp18 using ::testing::Throw;
142 .WillOnce(Throw(std::exception())); in TEST_F()
H A Dlibpldmresponder_bios_enum_attribute_test.cpp19 using ::testing::Throw;
157 .WillOnce(Throw(std::exception())); in TEST_F()

12