Lines Matching full:std
70 auto chassis = std::make_unique<Chassis>(1, chassisInvPath);
74 std::vector<std::unique_ptr<Rule>> rules{};
75 std::vector<std::unique_ptr<Chassis>> chassisVec{};
76 chassisVec.emplace_back(std::move(chassis));
78 std::make_unique<System>(std::move(rules), std::move(chassisVec));
82 const std::string deviceInvPath{
84 const std::string chassisInvPath{
91 std::unique_ptr<System> system{};
98 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
100 Device device{"vdd_reg", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F()
114 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
118 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
119 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
121 std::make_unique<PresenceDetection>(std::move(actions)); in TEST_F()
124 std::optional<double> volts{}; in TEST_F()
126 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
127 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
129 std::make_unique<Configuration>(volts, std::move(actions)); in TEST_F()
133 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
134 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
135 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
137 std::make_unique<PhaseFaultDetection>(std::move(actions)); in TEST_F()
140 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
141 rails.push_back(std::make_unique<Rail>("vdd0")); in TEST_F()
142 rails.push_back(std::make_unique<Rail>("vdd1")); in TEST_F()
148 std::move(i2cInterface), in TEST_F()
149 std::move(presenceDetection), in TEST_F()
150 std::move(configuration), in TEST_F()
151 std::move(phaseFaultDetection), in TEST_F()
152 std::move(rails)}; in TEST_F()
170 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
171 std::unique_ptr<Configuration> configuration{}; in TEST_F()
172 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
175 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
176 rails.push_back(std::make_unique<Rail>("vdd0")); in TEST_F()
177 rails.push_back(std::make_unique<Rail>("vdd1")); in TEST_F()
184 std::move(presenceDetection), in TEST_F()
185 std::move(configuration), in TEST_F()
186 std::move(phaseFaultDetection), in TEST_F()
187 std::move(rails)}; in TEST_F()
195 EXPECT_THROW(idMap.getDevice("vio_reg"), std::invalid_argument); in TEST_F()
200 EXPECT_THROW(idMap.getRail("vdd2"), std::invalid_argument); in TEST_F()
219 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
221 std::make_unique<PresenceDetection>(std::move(actions)); in TEST_F()
225 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
226 Device device{"reg2", true, deviceInvPath, std::move(i2cInterface), in TEST_F()
227 std::move(presenceDetection)}; in TEST_F()
245 std::unique_ptr<SensorMonitoring> sensorMonitoring{}; in TEST_F()
247 auto action = std::make_unique<MockAction>(); in TEST_F()
250 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
251 actions.emplace_back(std::move(action)); in TEST_F()
253 std::make_unique<SensorMonitoring>(std::move(actions)); in TEST_F()
257 std::unique_ptr<Configuration> configuration{}; in TEST_F()
258 auto rail = std::make_unique<Rail>("vdd", std::move(configuration), in TEST_F()
259 std::move(sensorMonitoring)); in TEST_F()
262 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
264 auto action = std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
265 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
266 actions.emplace_back(std::move(action)); in TEST_F()
268 std::make_unique<PhaseFaultDetection>(std::move(actions)); in TEST_F()
272 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
273 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
274 std::unique_ptr<Configuration> deviceConfiguration{}; in TEST_F()
275 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
276 rails.emplace_back(std::move(rail)); in TEST_F()
280 std::move(i2cInterface), in TEST_F()
281 std::move(presenceDetection), in TEST_F()
282 std::move(deviceConfiguration), in TEST_F()
283 std::move(phaseFaultDetection), in TEST_F()
284 std::move(rails)}; in TEST_F()
294 EXPECT_CALL(journal, logError(std::vector<std::string>{"DBus Error"})) in TEST_F()
357 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
364 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
365 EXPECT_CALL(journal, logError(A<const std::vector<std::string>&>())) in TEST_F()
369 Device device{"vdd_reg", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F()
378 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
385 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
386 EXPECT_CALL(journal, logError(A<const std::vector<std::string>&>())) in TEST_F()
390 Device device{"vdd_reg", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F()
399 auto i2cInterface = std::make_unique<i2c::MockedI2CInterface>(); in TEST_F()
411 std::vector<std::string> expectedErrMessagesException{ in TEST_F()
422 Device device{"vdd_reg", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F()
436 EXPECT_CALL(journal, logDebug(A<const std::string&>())).Times(0); in TEST_F()
437 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
440 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
442 auto action = std::make_unique<MockAction>(); in TEST_F()
444 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
445 actions.emplace_back(std::move(action)); in TEST_F()
447 std::make_unique<PresenceDetection>(std::move(actions)); in TEST_F()
451 std::unique_ptr<Configuration> configuration{}; in TEST_F()
453 std::optional<double> volts{}; in TEST_F()
454 auto action = std::make_unique<MockAction>(); in TEST_F()
456 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
457 actions.emplace_back(std::move(action)); in TEST_F()
459 std::make_unique<Configuration>(volts, std::move(actions)); in TEST_F()
463 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
467 std::move(i2cInterface), in TEST_F()
468 std::move(presenceDetection), in TEST_F()
469 std::move(configuration)}; in TEST_F()
480 EXPECT_CALL(journal, logDebug(A<const std::string&>())).Times(0); in TEST_F()
481 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
484 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
485 Device device{"reg2", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F()
493 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
505 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
510 std::optional<double> volts{1.3}; in TEST_F()
511 auto action = std::make_unique<MockAction>(); in TEST_F()
513 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
514 actions.emplace_back(std::move(action)); in TEST_F()
516 std::make_unique<Configuration>(volts, std::move(actions)); in TEST_F()
520 std::make_unique<Rail>("vdd0", std::move(configuration)); in TEST_F()
521 rails.emplace_back(std::move(rail)); in TEST_F()
527 std::optional<double> volts{3.2}; in TEST_F()
528 auto action = std::make_unique<MockAction>(); in TEST_F()
530 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
531 actions.emplace_back(std::move(action)); in TEST_F()
533 std::make_unique<Configuration>(volts, std::move(actions)); in TEST_F()
537 std::make_unique<Rail>("vio0", std::move(configuration)); in TEST_F()
538 rails.emplace_back(std::move(rail)); in TEST_F()
542 std::optional<double> volts{}; in TEST_F()
543 auto action = std::make_unique<MockAction>(); in TEST_F()
545 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
546 actions.emplace_back(std::move(action)); in TEST_F()
548 std::make_unique<Configuration>(volts, std::move(actions)); in TEST_F()
551 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
552 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
553 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
557 std::move(i2cInterface), in TEST_F()
558 std::move(presenceDetection), in TEST_F()
559 std::move(configuration), in TEST_F()
560 std::move(phaseFaultDetection), in TEST_F()
561 std::move(rails)}; in TEST_F()
575 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
580 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
582 auto action = std::make_unique<MockAction>(); in TEST_F()
584 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
585 actions.emplace_back(std::move(action)); in TEST_F()
587 std::make_unique<PresenceDetection>(std::move(actions)); in TEST_F()
591 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
593 auto action = std::make_unique<MockAction>(); in TEST_F()
595 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
596 actions.emplace_back(std::move(action)); in TEST_F()
598 std::make_unique<PhaseFaultDetection>(std::move(actions)); in TEST_F()
602 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
603 std::unique_ptr<Configuration> configuration{}; in TEST_F()
607 std::move(i2cInterface), in TEST_F()
608 std::move(presenceDetection), in TEST_F()
609 std::move(configuration), in TEST_F()
610 std::move(phaseFaultDetection)}; in TEST_F()
624 EXPECT_CALL(journal, logError(A<const std::string&>())).Times(0); in TEST_F()
629 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
630 Device device{"reg2", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F()
658 auto action = std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
659 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
660 actions.push_back(std::move(action)); in TEST_F()
662 std::make_unique<PhaseFaultDetection>(std::move(actions)); in TEST_F()
665 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
666 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
667 std::unique_ptr<Configuration> configuration{}; in TEST_F()
671 std::move(i2cInterface), in TEST_F()
672 std::move(presenceDetection), in TEST_F()
673 std::move(configuration), in TEST_F()
674 std::move(phaseFaultDetection)}; in TEST_F()
694 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
697 std::optional<double> volts{3.2}; in TEST_F()
698 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
699 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
700 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
702 std::make_unique<Configuration>(volts, std::move(actions)); in TEST_F()
709 std::move(presenceDetection), in TEST_F()
710 std::move(configuration)}; in TEST_F()
726 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
728 Device device{"vdd_reg", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F()
749 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
750 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
752 std::make_unique<PhaseFaultDetection>(std::move(actions)); in TEST_F()
755 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
756 std::unique_ptr<Configuration> configuration{}; in TEST_F()
761 std::move(presenceDetection), in TEST_F()
762 std::move(configuration), in TEST_F()
763 std::move(phaseFaultDetection)}; in TEST_F()
780 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
781 actions.push_back(std::make_unique<MockAction>()); in TEST_F()
783 std::make_unique<PresenceDetection>(std::move(actions)); in TEST_F()
787 std::move(presenceDetection)}; in TEST_F()
803 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
804 std::unique_ptr<Configuration> configuration{}; in TEST_F()
805 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
808 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
809 rails.push_back(std::make_unique<Rail>("vdd0")); in TEST_F()
810 rails.push_back(std::make_unique<Rail>("vdd1")); in TEST_F()
817 std::move(presenceDetection), in TEST_F()
818 std::move(configuration), in TEST_F()
819 std::move(phaseFaultDetection), in TEST_F()
820 std::move(rails)}; in TEST_F()
832 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
833 Device device{"reg2", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F()
845 auto action = std::make_unique<MockAction>(); in TEST_F()
847 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
848 actions.emplace_back(std::move(action)); in TEST_F()
850 std::make_unique<PresenceDetection>(std::move(actions)); in TEST_F()
853 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
854 Device device{"reg2", true, deviceInvPath, std::move(i2cInterface), in TEST_F()
855 std::move(presenceDetection)}; in TEST_F()
867 auto action = std::make_unique<MockAction>(); in TEST_F()
869 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
870 actions.emplace_back(std::move(action)); in TEST_F()
872 std::make_unique<PresenceDetection>(std::move(actions)); in TEST_F()
875 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
876 Device device{"reg2", true, deviceInvPath, std::move(i2cInterface), in TEST_F()
877 std::move(presenceDetection)}; in TEST_F()
905 std::unique_ptr<SensorMonitoring> sensorMonitoring{}; in TEST_F()
907 auto action = std::make_unique<MockAction>(); in TEST_F()
909 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
910 actions.emplace_back(std::move(action)); in TEST_F()
912 std::make_unique<SensorMonitoring>(std::move(actions)); in TEST_F()
916 std::unique_ptr<Configuration> configuration{}; in TEST_F()
917 auto rail = std::make_unique<Rail>("vddr1", std::move(configuration), in TEST_F()
918 std::move(sensorMonitoring)); in TEST_F()
921 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
923 auto action = std::make_unique<MockAction>(); in TEST_F()
925 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
926 actions.emplace_back(std::move(action)); in TEST_F()
928 std::make_unique<PresenceDetection>(std::move(actions)); in TEST_F()
932 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
933 std::unique_ptr<Configuration> deviceConfiguration{}; in TEST_F()
934 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
935 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
936 rails.emplace_back(std::move(rail)); in TEST_F()
940 std::move(i2cInterface), in TEST_F()
941 std::move(presenceDetection), in TEST_F()
942 std::move(deviceConfiguration), in TEST_F()
943 std::move(phaseFaultDetection), in TEST_F()
944 std::move(rails)}; in TEST_F()
960 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
961 Device device{"reg2", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F()
979 std::vector<std::unique_ptr<Rail>> rails{}; in TEST_F()
984 auto action = std::make_unique<MockAction>(); in TEST_F()
986 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
987 actions.emplace_back(std::move(action)); in TEST_F()
989 std::make_unique<SensorMonitoring>(std::move(actions)); in TEST_F()
992 std::unique_ptr<Configuration> configuration{}; in TEST_F()
993 auto rail = std::make_unique<Rail>("vdd0", std::move(configuration), in TEST_F()
994 std::move(sensorMonitoring)); in TEST_F()
995 rails.emplace_back(std::move(rail)); in TEST_F()
1001 auto action = std::make_unique<MockAction>(); in TEST_F()
1003 std::vector<std::unique_ptr<Action>> actions{}; in TEST_F()
1004 actions.emplace_back(std::move(action)); in TEST_F()
1006 std::make_unique<SensorMonitoring>(std::move(actions)); in TEST_F()
1009 std::unique_ptr<Configuration> configuration{}; in TEST_F()
1010 auto rail = std::make_unique<Rail>("vio0", std::move(configuration), in TEST_F()
1011 std::move(sensorMonitoring)); in TEST_F()
1012 rails.emplace_back(std::move(rail)); in TEST_F()
1016 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
1017 std::unique_ptr<PresenceDetection> presenceDetection{}; in TEST_F()
1018 std::unique_ptr<Configuration> configuration{}; in TEST_F()
1019 std::unique_ptr<PhaseFaultDetection> phaseFaultDetection{}; in TEST_F()
1023 std::move(i2cInterface), in TEST_F()
1024 std::move(presenceDetection), in TEST_F()
1025 std::move(configuration), in TEST_F()
1026 std::move(phaseFaultDetection), in TEST_F()
1027 std::move(rails)}; in TEST_F()