Lines Matching full:std

67         std::vector<std::unique_ptr<Rule>> rules{};
68 std::vector<std::unique_ptr<Chassis>> chassis{};
69 system = std::make_unique<System>(std::move(rules), std::move(chassis));
73 const std::string defaultInventoryPath{
76 std::unique_ptr<System> system{};
92 std::vector<std::unique_ptr<Device>> devices{}; in TEST_F()
97 Chassis chassis{1, defaultInventoryPath, std::move(devices)}; in TEST_F()
109 catch (const std::invalid_argument& e) in TEST_F()
122 std::vector<std::unique_ptr<Device>> devices{}; in TEST_F()
128 Chassis chassis{1, defaultInventoryPath, std::move(devices)}; in TEST_F()
138 EXPECT_THROW(idMap.getDevice("reg4"), std::invalid_argument); in TEST_F()
144 EXPECT_THROW(idMap.getRail("rail3"), std::invalid_argument); in TEST_F()
150 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
152 std::make_unique<PresenceDetection>(std::move(actions)); in TEST_F()
156 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
157 auto device = std::make_unique<Device>( in TEST_F()
160 std::move(i2cInterface), std::move(presenceDetection)); in TEST_F()
164 std::vector<std::unique_ptr<Device>> devices{}; in TEST_F()
165 devices.emplace_back(std::move(device)); in TEST_F()
166 Chassis chassis{1, defaultInventoryPath, std::move(devices)}; in TEST_F()
183 auto action = std::make_unique<MockAction>(); in TEST_F()
186 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
187 actions.emplace_back(std::move(action)); in TEST_F()
189 std::make_unique<SensorMonitoring>(std::move(actions)); in TEST_F()
192 std::unique_ptr<Configuration> configuration{}; in TEST_F()
193 auto rail = std::make_unique<Rail>("vddr1", std::move(configuration), in TEST_F()
194 std::move(sensorMonitoring)); in TEST_F()
197 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
198 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
199 std::unique_ptr<Configuration> deviceConfiguration{}; in TEST_F()
200 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
201 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
202 rails.emplace_back(std::move(rail)); in TEST_F()
203 auto device = std::make_unique<Device>( in TEST_F()
206 std::move(i2cInterface), std::move(presenceDetection), in TEST_F()
207 std::move(deviceConfiguration), std::move(phaseFaultDetection), in TEST_F()
208 std::move(rails)); in TEST_F()
211 std::vector<std::unique_ptr<Device>> devices{}; in TEST_F()
212 devices.emplace_back(std::move(device)); in TEST_F()
213 Chassis chassis{1, defaultInventoryPath, std::move(devices)}; in TEST_F()
226 EXPECT_CALL(journal, logError(A<const std::vector<std::string>&>())) in TEST_F()
228 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(6); in TEST_F()
281 std::vector<std::unique_ptr<Device>> devices{}; in TEST_F()
291 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
296 auto device = std::make_unique<Device>( in TEST_F()
300 std::move(i2cInterface)); in TEST_F()
301 devices.emplace_back(std::move(device)); in TEST_F()
307 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
312 auto device = std::make_unique<Device>( in TEST_F()
316 std::move(i2cInterface)); in TEST_F()
317 devices.emplace_back(std::move(device)); in TEST_F()
321 Chassis chassis{1, defaultInventoryPath, std::move(devices)}; in TEST_F()
336 EXPECT_CALL(journal, logDebug(A<const std::string&>())).Times(0); in TEST_F()
337 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
348 std::vector<std::unique_ptr<Device>> devices{}; in TEST_F()
358 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
363 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
365 std::make_unique<Configuration>(1.3, std::move(actions)); in TEST_F()
368 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
369 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
370 auto device = std::make_unique<Device>( in TEST_F()
374 std::move(i2cInterface), std::move(presenceDetection), in TEST_F()
375 std::move(configuration)); in TEST_F()
376 devices.emplace_back(std::move(device)); in TEST_F()
382 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
384 std::make_unique<Configuration>(1.2, std::move(actions)); in TEST_F()
387 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
388 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
389 auto device = std::make_unique<Device>( in TEST_F()
393 std::move(i2cInterface), std::move(presenceDetection), in TEST_F()
394 std::move(configuration)); in TEST_F()
395 devices.emplace_back(std::move(device)); in TEST_F()
399 Chassis chassis{2, defaultInventoryPath, std::move(devices)}; in TEST_F()
413 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
455 std::vector<std::unique_ptr<Device>> devices{}; in TEST_F()
461 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
462 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
463 actions.push_back(std::move(action)); in TEST_F()
465 std::make_unique<PhaseFaultDetection>(std::move(actions)); in TEST_F()
468 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
469 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
470 std::unique_ptr<Configuration> configuration{}; in TEST_F()
471 auto device = std::make_unique<Device>( in TEST_F()
475 std::move(i2cInterface), std::move(presenceDetection), in TEST_F()
476 std::move(configuration), std::move(phaseFaultDetection)); in TEST_F()
477 devices.emplace_back(std::move(device)); in TEST_F()
484 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
485 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
486 actions.push_back(std::move(action)); in TEST_F()
488 std::make_unique<PhaseFaultDetection>(std::move(actions)); in TEST_F()
491 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
492 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
493 std::unique_ptr<Configuration> configuration{}; in TEST_F()
494 auto device = std::make_unique<Device>( in TEST_F()
498 std::move(i2cInterface), std::move(presenceDetection), in TEST_F()
499 std::move(configuration), std::move(phaseFaultDetection)); in TEST_F()
500 devices.emplace_back(std::move(device)); in TEST_F()
504 Chassis chassis{2, defaultInventoryPath, std::move(devices)}; in TEST_F()
525 std::vector<std::unique_ptr<Device>> devices{}; in TEST_F()
530 Chassis chassis{1, defaultInventoryPath, std::move(devices)}; in TEST_F()
585 std::vector<std::unique_ptr<Device>> devices{}; in TEST_F()
590 auto action = std::make_unique<MockAction>(); in TEST_F()
592 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
593 actions.emplace_back(std::move(action)); in TEST_F()
595 std::make_unique<SensorMonitoring>(std::move(actions)); in TEST_F()
598 std::unique_ptr<Configuration> configuration{}; in TEST_F()
599 auto rail = std::make_unique<Rail>("vdd0", std::move(configuration), in TEST_F()
600 std::move(sensorMonitoring)); in TEST_F()
603 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
604 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
605 std::unique_ptr<Configuration> deviceConfiguration{}; in TEST_F()
606 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
607 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
608 rails.emplace_back(std::move(rail)); in TEST_F()
609 auto device = std::make_unique<Device>( in TEST_F()
613 std::move(i2cInterface), std::move(presenceDetection), in TEST_F()
614 std::move(deviceConfiguration), std::move(phaseFaultDetection), in TEST_F()
615 std::move(rails)); in TEST_F()
616 devices.emplace_back(std::move(device)); in TEST_F()
622 auto action = std::make_unique<MockAction>(); in TEST_F()
624 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
625 actions.emplace_back(std::move(action)); in TEST_F()
627 std::make_unique<SensorMonitoring>(std::move(actions)); in TEST_F()
630 std::unique_ptr<Configuration> configuration{}; in TEST_F()
631 auto rail = std::make_unique<Rail>("vdd1", std::move(configuration), in TEST_F()
632 std::move(sensorMonitoring)); in TEST_F()
635 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
636 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
637 std::unique_ptr<Configuration> deviceConfiguration{}; in TEST_F()
638 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
639 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
640 rails.emplace_back(std::move(rail)); in TEST_F()
641 auto device = std::make_unique<Device>( in TEST_F()
645 std::move(i2cInterface), std::move(presenceDetection), in TEST_F()
646 std::move(deviceConfiguration), std::move(phaseFaultDetection), in TEST_F()
647 std::move(rails)); in TEST_F()
648 devices.emplace_back(std::move(device)); in TEST_F()
652 Chassis chassis{2, defaultInventoryPath, std::move(devices)}; in TEST_F()