| /openbmc/phosphor-psu-code-mgmt/test/ |
| H A D | test_item_updater.cpp | 16 using ::testing::StrEq; 36 ON_CALL(mockedUtils, getPropertyImpl(_, _, _, _, StrEq(PRESENT))) in TestItemUpdater() 89 EXPECT_CALL(mockedUtils, getService(_, StrEq(psuPath), _)) in TEST_F() 91 EXPECT_CALL(mockedUtils, getPropertyImpl(_, StrEq(service), StrEq(psuPath), in TEST_F() 92 _, StrEq(PRESENT))) in TEST_F() 96 EXPECT_CALL(sdbusMock, sd_bus_emit_object_added(_, StrEq(dBusPath))) in TEST_F() 100 EXPECT_CALL(sdbusMock, sd_bus_emit_object_added(_, StrEq(objPath))) in TEST_F() 113 EXPECT_CALL(mockedUtils, getService(_, StrEq(psuPath), _)) in TEST_F() 115 EXPECT_CALL(mockedUtils, getVersion(StrEq(psuPath))) in TEST_F() 117 EXPECT_CALL(mockedUtils, getPropertyImpl(_, StrEq(service), StrEq(psuPath), in TEST_F() [all …]
|
| H A D | test_activation.cpp | 16 using ::testing::StrEq; 37 ON_CALL(mockedUtils, getPropertyImpl(_, _, _, _, StrEq(PRESENT))) in TestActivation() 41 ON_CALL(mockedUtils, getPropertyImpl(_, _, _, _, StrEq(MANUFACTURER))) in TestActivation() 158 onUpdateDone(StrEq(versionId), StrEq(psu0))) in TEST_F() 182 onUpdateDone(StrEq(versionId), StrEq(psu0))) in TEST_F() 189 onUpdateDone(StrEq(versionId), StrEq(psu1))) in TEST_F() 196 onUpdateDone(StrEq(versionId), StrEq(psu2))) in TEST_F() 210 onUpdateDone(StrEq(versionId), StrEq(psu3))) in TEST_F() 234 onUpdateDone(StrEq(versionId), StrEq(psu0))) in TEST_F() 275 ON_CALL(mockedUtils, getPropertyImpl(_, _, _, _, StrEq(PRESENT))) in TEST_F() [all …]
|
| /openbmc/sdbusplus/test/server/ |
| H A D | object.cpp | 9 using ::testing::StrEq; 42 EXPECT_CALL(sdbusMock, sd_bus_emit_object_added(_, StrEq(objPath))) in TEST_F() 45 sd_bus_emit_interfaces_added_strv(_, StrEq(objPath), _)) in TEST_F() 53 EXPECT_CALL(sdbusMock, sd_bus_emit_object_removed(_, StrEq(objPath))) in TEST_F() 56 sd_bus_emit_interfaces_removed_strv(_, StrEq(objPath), _)) in TEST_F() 66 EXPECT_CALL(sdbusMock, sd_bus_emit_object_added(_, StrEq(objPath))) in TEST_F() 69 sd_bus_emit_interfaces_added_strv(_, StrEq(objPath), _)) in TEST_F() 76 EXPECT_CALL(sdbusMock, sd_bus_emit_object_added(_, StrEq(objPath))) in TEST_F() 79 sd_bus_emit_interfaces_added_strv(_, StrEq(objPath), _)) in TEST_F() 85 EXPECT_CALL(sdbusMock, sd_bus_emit_object_removed(_, StrEq(objPath))) in TEST_F() [all …]
|
| /openbmc/phosphor-hwmon/test/ |
| H A D | sensor_unittest.cpp | 42 using ::testing::StrEq; 54 EXPECT_CALL(env::mockEnv, get(StrEq("GPIOCHIP_temp5"))) in TEST_F() 56 EXPECT_CALL(env::mockEnv, get(StrEq("GPIO_temp5"))).WillOnce(Return("")); in TEST_F() 59 EXPECT_CALL(env::mockEnv, get(StrEq("GAIN_temp5"))).WillOnce(Return("")); in TEST_F() 60 EXPECT_CALL(env::mockEnv, get(StrEq("OFFSET_temp5"))).WillOnce(Return("")); in TEST_F() 61 EXPECT_CALL(env::mockEnv, get(StrEq("REMOVERCS_temp5"))) in TEST_F() 86 EXPECT_CALL(env::mockEnv, get(StrEq("GPIOCHIP_temp5"))) in TEST_F() 88 EXPECT_CALL(env::mockEnv, get(StrEq("GPIO_temp5"))).WillOnce(Return("5")); in TEST_F() 90 EXPECT_CALL(gMock, build(StrEq("chipA"), StrEq("5"))) in TEST_F() 96 EXPECT_CALL(env::mockEnv, get(StrEq("GAIN_temp5"))).WillOnce(Return("")); in TEST_F() [all …]
|
| H A D | fanpwm_unittest.cpp | 15 using ::testing::StrEq; 28 sd_bus_emit_properties_changed_strv(IsNull(), StrEq(path), in SetupDbusObject() 29 StrEq(intf), NotNull())) in SetupDbusObject() 35 sd_bus_emit_properties_changed_strv(IsNull(), StrEq(path), in SetupDbusObject() 36 StrEq(intf), NotNull())) in SetupDbusObject() 93 EXPECT_CALL(sdbus_mock, sd_bus_emit_object_added(IsNull(), StrEq("asdf"))) in TEST() 96 EXPECT_CALL(sdbus_mock, sd_bus_emit_object_removed(IsNull(), StrEq("asdf"))) in TEST() 131 write(static_cast<uint32_t>(target), StrEq("pwm"), in TEST() 132 StrEq("the_id"), _, hwmonio::retries, hwmonio::delay)); in TEST() 136 IsNull(), StrEq("asdf"), StrEq(FanPwmIntf), NotNull())) in TEST()
|
| H A D | env_unittest.cpp | 10 using ::testing::StrEq; 33 EXPECT_CALL(env::mockEnv, get(StrEq("AVERAGE_power1"))) in TEST() 45 EXPECT_CALL(env::mockEnv, get(StrEq("AVERAGE_power1"))) in TEST() 47 EXPECT_CALL(env::mockEnv, get(StrEq("AVERAGE_power2"))) in TEST()
|
| /openbmc/phosphor-pid-control/test/ |
| H A D | dbus_passive_unittest.cpp | 35 using ::testing::StrEq; 86 getService(StrEq(SensorValue::interface), StrEq(path))) in DbusPassiveTestObj() 90 getProperties(StrEq("asdf"), StrEq(path), NotNull())) in DbusPassiveTestObj() 101 EXPECT_CALL(*helper, thresholdsAsserted(StrEq("asdf"), StrEq(path))) in DbusPassiveTestObj() 199 sd_bus_message_enter_container(IsNull(), 'a', StrEq("{sv}"))) in TEST_F() 209 sd_bus_message_enter_container(IsNull(), 'e', StrEq("sv"))) in TEST_F() 213 sd_bus_message_verify_type(IsNull(), 'v', StrEq("x"))) in TEST_F() 216 sd_bus_message_enter_container(IsNull(), 'v', StrEq("x"))) in TEST_F() 271 sd_bus_message_enter_container(IsNull(), 'a', StrEq("{sv}"))) in TEST_F() 281 sd_bus_message_enter_container(IsNull(), 'e', StrEq("sv"))) in TEST_F() [all …]
|
| H A D | pid_fancontroller_unittest.cpp | 26 using ::testing::StrEq; 70 EXPECT_CALL(z, getCachedValue(StrEq("fan0"))).WillOnce(Return(0)); in TEST() 71 EXPECT_CALL(z, getCachedValue(StrEq("fan1"))).WillOnce(Return(0)); in TEST() 88 EXPECT_CALL(z, getCachedValue(StrEq("fan0"))).WillOnce(Return(-1)); in TEST() 89 EXPECT_CALL(z, getCachedValue(StrEq("fan1"))).WillOnce(Return(-1)); in TEST() 107 EXPECT_CALL(z, getCachedValue(StrEq("fan0"))).WillOnce(Return(10.0)); in TEST() 108 EXPECT_CALL(z, getCachedValue(StrEq("fan1"))).WillOnce(Return(30.0)); in TEST() 109 EXPECT_CALL(z, getCachedValue(StrEq("fan2"))).WillOnce(Return(5.0)); in TEST() 182 EXPECT_CALL(z, getSensor(StrEq("fan0"))).WillOnce(Return(s1.get())); in TEST() 184 EXPECT_CALL(z, getSensor(StrEq("fan1"))).WillOnce(Return(s2.get())); in TEST() [all …]
|
| H A D | pid_thermalcontroller_unittest.cpp | 22 using ::testing::StrEq; 74 EXPECT_CALL(z, getCachedValue(StrEq("fleeting0"))).WillOnce(Return(5.0)); in TEST() 132 EXPECT_CALL(z, getCachedValue(StrEq("fleeting0"))).WillOnce(Return(5.0)); in TEST() 133 EXPECT_CALL(z, getCachedValue(StrEq("fleeting1"))).WillOnce(Return(10.0)); in TEST() 154 EXPECT_CALL(z, getCachedValue(StrEq("fleeting0"))).WillOnce(Return(5.0)); in TEST() 155 EXPECT_CALL(z, getCachedValue(StrEq("fleeting1"))).WillOnce(Return(10.0)); in TEST() 176 EXPECT_CALL(z, getCachedValue(StrEq("fleeting0"))).WillOnce(Return(5.0)); in TEST() 177 EXPECT_CALL(z, getCachedValue(StrEq("fleeting1"))).WillOnce(Return(10.0)); in TEST() 198 EXPECT_CALL(z, getCachedValue(StrEq("absolute0"))).WillOnce(Return(82.0)); in TEST() 199 EXPECT_CALL(z, getCachedValue(StrEq("margin1"))).WillOnce(Return(5.0)); in TEST() [all …]
|
| H A D | helpers.hpp | 22 using ::testing::StrEq; 50 sd_bus_emit_object_added(IsNull(), StrEq(path))) in SetupDbusObject() 58 sd_bus_emit_properties_changed_strv(IsNull(), StrEq(path), in SetupDbusObject() 59 StrEq(intf), NotNull())) in SetupDbusObject()
|
| H A D | sensor_host_unittest.cpp | 29 using ::testing::StrEq; 59 sd_bus_emit_object_removed(IsNull(), StrEq(objPath))) in TEST() 85 sd_bus_emit_object_removed(IsNull(), StrEq(objPath))) in TEST() 99 IsNull(), StrEq(objPath), in TEST() 100 StrEq(SensorValue::interface), NotNull())) in TEST()
|
| H A D | sensor_manager_unittest.cpp | 23 using ::testing::StrEq; 35 IsNull(), _, StrEq("/xyz/openbmc_project/extsensors"))) in TEST() 54 IsNull(), _, StrEq("/xyz/openbmc_project/extsensors"))) in TEST()
|
| /openbmc/bmcweb/test/redfish-core/include/ |
| H A D | submit_test_event_test.cpp | 13 using ::testing::StrEq; 61 EXPECT_THAT(testEvent.eventTimestamp, Optional(StrEq("2021-01"))); in TEST() 62 EXPECT_THAT(testEvent.message, Optional(StrEq("Test Message"))); in TEST() 63 EXPECT_THAT(testEvent.messageId, Optional(StrEq("Dummy message ID"))); in TEST() 65 Optional(StrEq("/redfish/v1/Chassis/GPU_SXM_1"))); in TEST() 66 EXPECT_THAT(testEvent.resolution, Optional(StrEq("custom resolution"))); in TEST() 67 EXPECT_THAT(testEvent.severity, Optional(StrEq("whatever"))); in TEST()
|
| /openbmc/estoraged/src/test/erase/ |
| H A D | crypto_test.cpp | 27 using ::testing::StrEq; 55 EXPECT_CALL(*mockCryptIface, cryptLoad(_, StrEq(CRYPT_LUKS2), nullptr)) in TEST_F() 58 EXPECT_CALL(*mockCryptIface, cryptKeySlotMax(StrEq(CRYPT_LUKS2))) in TEST_F() 76 EXPECT_CALL(*mockCryptIface, cryptLoad(_, StrEq(CRYPT_LUKS2), nullptr)) in TEST_F() 79 EXPECT_CALL(*mockCryptIface, cryptKeySlotMax(StrEq(CRYPT_LUKS2))) in TEST_F() 92 EXPECT_CALL(*mockCryptIface, cryptLoad(_, StrEq(CRYPT_LUKS2), nullptr)) in TEST_F() 95 EXPECT_CALL(*mockCryptIface, cryptKeySlotMax(StrEq(CRYPT_LUKS2))) in TEST_F() 108 EXPECT_CALL(*mockCryptIface, cryptLoad(_, StrEq(CRYPT_LUKS2), nullptr)) in TEST_F() 111 EXPECT_CALL(*mockCryptIface, cryptKeySlotMax(StrEq(CRYPT_LUKS2))) in TEST_F() 127 EXPECT_CALL(*mockCryptIface, cryptLoad(_, StrEq(CRYPT_LUKS2), nullptr)) in TEST_F() [all …]
|
| /openbmc/phosphor-health-monitor/test/ |
| H A D | test_health_metric.cpp | 21 using ::testing::StrEq; 64 IsNull(), StrEq(objPath), in TEST_F() 65 StrEq(ValueIntf::interface), NotNull())) in TEST_F() 73 IsNull(), StrEq(objPath), in TEST_F() 74 StrEq(ThresholdIntf::interface), NotNull())) in TEST_F() 82 sd_bus_message_new_signal(_, _, StrEq(objPath), in TEST_F() 83 StrEq(ThresholdIntf::interface), in TEST_F() 84 StrEq("AssertionChanged"))) in TEST_F()
|
| H A D | test_health_metric_collection.cpp | 19 using ::testing::StrEq; 97 IsNull(), NotNull(), StrEq(valueInterface), NotNull())) in TEST_F() 114 IsNull(), NotNull(), StrEq(thresholdInterface), NotNull())) in TEST_F() 137 IsNull(), NotNull(), StrEq(valueInterface), NotNull())) in TEST_F() 141 EXPECT_THAT("Value", StrEq(names[0])); in TEST_F() 148 IsNull(), NotNull(), StrEq(thresholdInterface), NotNull())) in TEST_F() 162 StrEq(thresholdInterface), in TEST_F() 163 StrEq("AssertionChanged"))) in TEST_F()
|
| /openbmc/estoraged/src/test/ |
| H A D | estoraged_test.cpp | 42 using ::testing::StrEq; 153 EXPECT_CALL(*mockFsIface, runMkfs(StrEq(esObject->getCryptDevicePath()), in TEST_F() 157 EXPECT_CALL(*mockFsIface, runFsck(StrEq(esObject->getCryptDevicePath()), in TEST_F() 158 StrEq("-t ext4 -p"))) in TEST_F() 168 doMount(StrEq(esObject->getCryptDevicePath()), in TEST_F() 169 StrEq(esObject->getMountPoint()), _, _, _)) in TEST_F() 172 EXPECT_CALL(*mockFsIface, doUnmount(StrEq(esObject->getMountPoint()))) in TEST_F() 205 EXPECT_CALL(*mockFsIface, runMkfs(StrEq(esObject->getCryptDevicePath()), in TEST_F() 209 EXPECT_CALL(*mockFsIface, runFsck(StrEq(esObject->getCryptDevicePath()), in TEST_F() 210 StrEq("-t ext4 -p"))) in TEST_F() [all …]
|
| /openbmc/google-ipmi-sys/test/ |
| H A D | handler_unittest.cpp | 136 using ::testing::StrEq; 205 StrEq("com.google.custom_accel"), StrEq("/"), in ExpectGetManagedObjects() 206 StrEq("org.freedesktop.DBus.ObjectManager"), in ExpectGetManagedObjects() 207 StrEq("GetManagedObjects"))) in ExpectGetManagedObjects() 220 StrEq("{oa{sa{sv}}}"))) in ExpectGetManagedObjects() 226 msg, SD_BUS_TYPE_DICT_ENTRY, StrEq("oa{sa{sv}}"))) in ExpectGetManagedObjects() 234 StrEq("{sa{sv}}"))) in ExpectGetManagedObjects() 240 msg, SD_BUS_TYPE_DICT_ENTRY, StrEq("sa{sv}"))) in ExpectGetManagedObjects() 248 StrEq("{s in ExpectGetManagedObjects() [all...] |
| /openbmc/pldm/libpldmresponder/test/ |
| H A D | libpldmresponder_bios_enum_attribute_test.cpp | 18 using ::testing::StrEq; 124 ON_CALL(biosStringTable, findHandle(StrEq("Concurrent"))) in TEST_F() 126 ON_CALL(biosStringTable, findHandle(StrEq("Disruptive"))) in TEST_F() 128 ON_CALL(biosStringTable, findHandle(StrEq("CodeUpdatePolicy"))) in TEST_F() 155 getDbusPropertyVariant(StrEq("/xyz/abc/def"), StrEq("Policy"), in TEST_F() 156 StrEq("xyz.openbmc.abc.def"))) in TEST_F() 167 getDbusPropertyVariant(StrEq("/xyz/abc/def"), StrEq("Policy"), in TEST_F() 168 StrEq("xyz.openbmc.abc.def"))) in TEST_F()
|
| H A D | libpldmresponder_bios_integer_attribute_test.cpp | 18 using ::testing::StrEq; 120 ON_CALL(biosStringTable, findHandle(StrEq("VDD_AVSBUS_RAIL"))) in TEST_F() 145 getDbusPropertyVariant(StrEq("/xyz/openbmc_project/avsbus"), in TEST_F() 146 StrEq("Rail"), in TEST_F() 147 StrEq("xyz.openbmc.AvsBus.Manager"))) in TEST_F() 158 getDbusPropertyVariant(StrEq("/xyz/openbmc_project/avsbus"), in TEST_F() 159 StrEq("Rail"), in TEST_F() 160 StrEq("xyz.openbmc.AvsBus.Manager"))) in TEST_F()
|
| H A D | libpldmresponder_bios_string_attribute_test.cpp | 17 using ::testing::StrEq; 109 ON_CALL(biosStringTable, findHandle(StrEq("str_example1"))) in TEST_F() 140 getDbusPropertyVariant(StrEq("/xyz/abc/def"), StrEq("Str_example1"), in TEST_F() 141 StrEq("xyz.openbmc_project.str_example1.value"))) in TEST_F() 149 getDbusPropertyVariant(StrEq("/xyz/abc/def"), StrEq("Str_example1"), in TEST_F() 150 StrEq("xyz.openbmc_project.str_example1.value"))) in TEST_F()
|
| /openbmc/google-misc/subprojects/ncsid/test/ |
| H A D | normalize_mac_test.sh | 31 StrEq "$("$NORMALIZE_MAC" '0:0:0:0:0:0')" '00:00:00:00:00:00' 32 StrEq "$("$NORMALIZE_MAC" 'ff:0f:0:0:11:1')" 'ff:0f:00:00:11:01' 33 StrEq "$("$NORMALIZE_MAC" '0:0:0:0:0:ff')" "$("$NORMALIZE_MAC" '0:0:0:0:0:FF')"
|
| H A D | normalize_ip_test.sh | 30 StrEq "$("$NORMALIZE_IP" '192.168.10.1')" '192.168.10.1' 31 StrEq "$("$NORMALIZE_IP" '1.1.1.1')" '1.1.1.1' 35 StrEq "$("$NORMALIZE_IP" 'fe80:00B1::0000:1')" 'fe80:b1::1'
|
| /openbmc/phosphor-ipmi-flash/tools/test/ |
| H A D | io_unittest.cpp | 19 using ::testing::StrEq; 114 EXPECT_CALL(sys_mock, open(StrEq(path), _)).WillOnce(Return(-1)); in TEST_F() 123 EXPECT_CALL(sys_mock, open(StrEq(path), _)).WillOnce(Return(fd)); in TEST_F() 133 EXPECT_CALL(sys_mock, open(StrEq(path), _)).WillOnce(Return(fd)); in TEST_F() 146 EXPECT_CALL(sys_mock, open(StrEq(path), _)).WillOnce(Return(-1)); in TEST_F() 155 EXPECT_CALL(sys_mock, open(StrEq(path), _)).WillOnce(Return(fd)); in TEST_F() 165 EXPECT_CALL(sys_mock, open(StrEq(path), _)).WillOnce(Return(fd)); in TEST_F()
|
| /openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/ |
| H A D | firmware_close_unittest.cpp | 20 using ::testing::StrEq; 31 EXPECT_CALL(*hashImageMock, open(StrEq(hashBlobId), std::ios::out)) in TEST_F() 61 EXPECT_CALL(*hashImageMock, open(StrEq(hashBlobId), std::ios::out)) in TEST_F()
|