Lines Matching refs:sut
57 std::unique_ptr<Trigger> sut; member in TestTrigger
67 sut = makeTrigger(triggerParams); in SetUp()
152 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "Name"), in TEST_F()
154 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistent"), Eq(true)); in TEST_F()
156 getProperty<std::vector<std::string>>(sut->getPath(), "TriggerActions"), in TEST_F()
160 EXPECT_THAT((getProperty<SensorsInfo>(sut->getPath(), "Sensors")), in TEST_F()
163 getProperty<std::vector<object_path>>(sut->getPath(), "Reports"), in TEST_F()
166 getProperty<bool>(sut->getPath(), "Discrete"), in TEST_F()
169 getProperty<TriggerThresholdParams>(sut->getPath(), "Thresholds"), in TEST_F()
176 EXPECT_THAT(sut->getId(), Eq(triggerParams.id())); in TEST_F()
177 EXPECT_THAT(sut->getPath(), in TEST_F()
184 EXPECT_THAT(setProperty(sut->getPath(), "Name", name), in TEST_F()
186 EXPECT_THAT(getProperty<std::string>(sut->getPath(), "Name"), Eq(name)); in TEST_F()
195 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newNames), in TEST_F()
198 getProperty<std::vector<object_path>>(sut->getPath(), "Reports"), in TEST_F()
213 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
226 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
240 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
252 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
265 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
278 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
290 EXPECT_THAT(setProperty(sut->getPath(), "Reports", newPropertyVal), in TEST_F()
305 EXPECT_THAT(setProperty(sut->getPath(), "Sensors", newSensors), in TEST_F()
316 EXPECT_THAT(setProperty(sut->getPath(), "Thresholds", newThresholds), in TEST_F()
332 sut->getPath(), "Thresholds", in TEST_F()
344 sut->getPath(), "Name", in TEST_F()
405 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))); in TEST_F()
406 EXPECT_CALL(*triggerManagerMockPtr, removeTrigger(sut.get())); in TEST_F()
408 auto ec = deleteTrigger(sut->getPath()); in TEST_F()
418 auto ec = deleteTrigger(sut->getPath()); in TEST_F()
431 EXPECT_CALL(storageMock, remove(to_file_path(sut->getId()))); in TEST_F()
434 EXPECT_THAT(setProperty(sut->getPath(), "Persistent", persistent), in TEST_F()
436 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistent"), in TEST_F()
454 sut = makeTrigger(triggerParams); in TEST_F()
456 EXPECT_THAT(getProperty<bool>(sut->getPath(), "Persistent"), Eq(false)); in TEST_F()
474 sut = makeTrigger(triggerParams); in TEST_F()
488 sut = makeTrigger(triggerParams); in SetUp()