/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-pid-control/test/ |
H A D | dbus_passive_unittest.cpp | 29 using ::testing::StrEq; 76 EXPECT_CALL(*helper, getService(StrEq(SensorIntf), StrEq(path))) in DbusPassiveTestObj() 80 getProperties(StrEq("asdf"), StrEq(path), NotNull())) in DbusPassiveTestObj() 91 EXPECT_CALL(*helper, thresholdsAsserted(StrEq("asdf"), StrEq(path))) in DbusPassiveTestObj() 188 sd_bus_message_enter_container(IsNull(), 'a', StrEq("{sv}"))) in TEST_F() 198 sd_bus_message_enter_container(IsNull(), 'e', StrEq("sv"))) in TEST_F() 202 sd_bus_message_verify_type(IsNull(), 'v', StrEq("x"))) in TEST_F() 205 sd_bus_message_enter_container(IsNull(), 'v', StrEq("x"))) in TEST_F() 261 sd_bus_message_enter_container(IsNull(), 'a', StrEq("{sv}"))) in TEST_F() 271 sd_bus_message_enter_container(IsNull(), 'e', StrEq("sv"))) in TEST_F() [all …]
|
H A D | pid_fancontroller_unittest.cpp | 27 using ::testing::StrEq; 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() 183 EXPECT_CALL(z, getSensor(StrEq("fan0"))).WillOnce(Return(s1.get())); in TEST() 185 EXPECT_CALL(z, getSensor(StrEq("fan1"))).WillOnce(Return(s2.get())); in TEST() [all …]
|
H A D | pid_thermalcontroller_unittest.cpp | 20 using ::testing::StrEq; 72 EXPECT_CALL(z, getCachedValue(StrEq("fleeting0"))).WillOnce(Return(5.0)); in TEST() 130 EXPECT_CALL(z, getCachedValue(StrEq("fleeting0"))).WillOnce(Return(5.0)); in TEST() 131 EXPECT_CALL(z, getCachedValue(StrEq("fleeting1"))).WillOnce(Return(10.0)); in TEST() 152 EXPECT_CALL(z, getCachedValue(StrEq("fleeting0"))).WillOnce(Return(5.0)); in TEST() 153 EXPECT_CALL(z, getCachedValue(StrEq("fleeting1"))).WillOnce(Return(10.0)); in TEST() 174 EXPECT_CALL(z, getCachedValue(StrEq("fleeting0"))).WillOnce(Return(5.0)); in TEST() 175 EXPECT_CALL(z, getCachedValue(StrEq("fleeting1"))).WillOnce(Return(10.0)); in TEST() 196 EXPECT_CALL(z, getCachedValue(StrEq("absolute0"))).WillOnce(Return(82.0)); in TEST() 197 EXPECT_CALL(z, getCachedValue(StrEq("margin1"))).WillOnce(Return(5.0)); in TEST() [all …]
|
H A D | helpers.hpp | 20 using ::testing::StrEq; 48 sd_bus_emit_object_added(IsNull(), StrEq(path))) in SetupDbusObject() 56 sd_bus_emit_properties_changed_strv(IsNull(), StrEq(path), in SetupDbusObject() 57 StrEq(intf), NotNull())) in SetupDbusObject()
|
H A D | sensor_host_unittest.cpp | 24 using ::testing::StrEq; 54 sd_bus_emit_object_removed(IsNull(), StrEq(objPath))) in TEST() 80 sd_bus_emit_object_removed(IsNull(), StrEq(objPath))) in TEST() 95 IsNull(), StrEq(objPath), StrEq(interface), NotNull())) in TEST()
|
/openbmc/phosphor-hwmon/test/ |
H A D | sensor_unittest.cpp | 43 using ::testing::StrEq; 55 EXPECT_CALL(env::mockEnv, get(StrEq("GPIOCHIP_temp5"))) 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() 62 EXPECT_CALL(env::mockEnv, get(StrEq("REMOVERCS_temp5"))) in TEST_F() 87 EXPECT_CALL(env::mockEnv, get(StrEq("GPIOCHIP_temp5"))) in TEST_F() 89 EXPECT_CALL(env::mockEnv, get(StrEq("GPIO_temp5"))).WillOnce(Return("5")); in TEST_F() 91 EXPECT_CALL(gMock, build(StrEq("chipA"), StrEq("5"))) in TEST_F() 97 EXPECT_CALL(env::mockEnv, get(StrEq("GAIN_temp5"))).WillOnce(Return("")); in TEST_F() [all …]
|
H A D | fanpwm_unittest.cpp | 16 using ::testing::StrEq; 29 sd_bus_emit_properties_changed_strv(IsNull(), StrEq(path), in SetupDbusObject() 30 StrEq(intf), NotNull())) in SetupDbusObject() 36 sd_bus_emit_properties_changed_strv(IsNull(), StrEq(path), in SetupDbusObject() 37 StrEq(intf), NotNull())) in SetupDbusObject() 94 EXPECT_CALL(sdbus_mock, sd_bus_emit_object_added(IsNull(), StrEq("asdf"))) in TEST() 97 EXPECT_CALL(sdbus_mock, sd_bus_emit_object_removed(IsNull(), StrEq("asdf"))) in TEST() 132 write(static_cast<uint32_t>(target), StrEq("pwm"), in TEST() 133 StrEq("the_id"), _, hwmonio::retries, hwmonio::delay)); in TEST() 137 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/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/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/google-ipmi-sys/test/ |
H A D | handler_unittest.cpp | 135 using ::testing::StrEq; 204 StrEq("com.google.custom_accel"), StrEq("/"), in ExpectGetManagedObjects() 205 StrEq("org.freedesktop.DBus.ObjectManager"), in ExpectGetManagedObjects() 206 StrEq("GetManagedObjects"))) in ExpectGetManagedObjects() 219 StrEq("{oa{sa{sv}}}"))) in ExpectGetManagedObjects() 225 msg, SD_BUS_TYPE_DICT_ENTRY, StrEq("oa{sa{sv}}"))) in ExpectGetManagedObjects() 233 StrEq("{sa{sv}}"))) in ExpectGetManagedObjects() 239 msg, SD_BUS_TYPE_DICT_ENTRY, StrEq("sa{sv}"))) in ExpectGetManagedObjects() 247 StrEq("{sv}"))) in ExpectGetManagedObjects() 253 msg, SD_BUS_TYPE_DICT_ENTRY, StrEq("sv"))) in ExpectGetManagedObjects() [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/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_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()
|
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_platform_test.cpp | 25 using ::testing::StrEq; 39 EXPECT_CALL(mockedUtils, getService(StrEq("/foo/bar"), _)) in TEST() 78 EXPECT_CALL(mockedUtils, getService(StrEq("/foo/bar"), _)) in TEST() 111 EXPECT_CALL(mockedUtils, getService(StrEq("/foo/bar"), _)) in TEST() 142 EXPECT_CALL(mockedUtils, getService(StrEq("/foo/bar"), _)) in TEST() 175 EXPECT_CALL(mockedUtils, getService(StrEq("/foo/bar"), _)) in TEST() 234 EXPECT_CALL(mockedUtils, getService(StrEq("/foo/bar"), _)) in TEST() 282 EXPECT_CALL(mockedUtils, getService(StrEq("/foo/bar"), _)) in TEST() 327 EXPECT_CALL(mockedUtils, getService(StrEq("/foo/bar"), _)) in TEST() 371 EXPECT_CALL(mockedUtils, getService(StrEq("/foo/bar"), _)) in TEST() [all …]
|
/openbmc/estoraged/src/test/ |
H A D | estoraged_test.cpp | 34 using ::testing::StrEq; 142 EXPECT_CALL(*mockFsIface, runMkfs(StrEq(esObject->getCryptDevicePath()))) in TEST_F() 152 doMount(StrEq(esObject->getCryptDevicePath()), in TEST_F() 153 StrEq(esObject->getMountPoint()), _, _, _)) in TEST_F() 156 EXPECT_CALL(*mockFsIface, doUnmount(StrEq(esObject->getMountPoint()))) in TEST_F() 189 EXPECT_CALL(*mockFsIface, runMkfs(StrEq(esObject->getCryptDevicePath()))) in TEST_F() 199 doMount(StrEq(esObject->getCryptDevicePath()), in TEST_F() 200 StrEq(esObject->getMountPoint()), _, _, _)) in TEST_F() 203 EXPECT_CALL(*mockFsIface, doUnmount(StrEq(esObject->getMountPoint()))) in TEST_F() 306 EXPECT_CALL(*mockFsIface, runMkfs(StrEq(esObject->getCryptDevicePath()))) in TEST_F() [all …]
|
/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()
|
H A D | tools_net_unittest.cpp | 32 using ::testing::StrEq; 55 EXPECT_CALL(sysMock, open(StrEq(filePath.c_str()), _)) in expectOpenFile() 58 EXPECT_CALL(sysMock, getSize(StrEq(filePath.c_str()))) in expectOpenFile() 66 getaddrinfo(StrEq(host), StrEq(port), in expectAddrInfo() 108 EXPECT_CALL(sysMock, open(StrEq(filePath.c_str()), _)) in TEST_F() 119 getaddrinfo(StrEq(host), StrEq(port), 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'
|