Lines Matching refs:pfw
62 CAPTURE(pfwGetLastError(pfw)); in REQUIRE_FAILURE()
64 CHECK(not empty(pfwGetLastError(pfw))); in REQUIRE_FAILURE()
72 CAPTURE(pfwGetLastError(pfw)); in REQUIRE_SUCCESS()
74 CHECK(empty(pfwGetLastError(pfw))); in REQUIRE_SUCCESS()
120 PfwHandler *pfw; member
158 pfw = pfwCreate();
159 REQUIRE(pfw != NULL);
162 CHECK(empty(pfwGetLastError(pfw)));
169 REQUIRE_FAILURE(pfwStart(pfw, NULL, criteria, criterionNb, &logger));
172 REQUIRE_FAILURE(pfwStart(pfw, "/doNotExist", criteria, criterionNb, &logger));
176 REQUIRE_FAILURE(pfwStart(pfw, config, NULL, criterionNb, &logger));
183 REQUIRE_FAILURE(pfwStart(pfw, config, duplicatedCriteria, 2, &logger));
190 REQUIRE_FAILURE(pfwStart(pfw, config, duplicatedCriteria, 1, &logger));
194 REQUIRE_FAILURE(pfwStart(pfw, config, duplicatedCriteria, 1, NULL));
199 REQUIRE_FAILURE(pfwStart(pfw, config, duplicatedCriteria, 1, &logger));
203 REQUIRE_FAILURE(pfwStart(pfw, config, duplicatedCriteria, 1, &logger));
244 REQUIRE_FAILURE(pfwStart(pfw, config, duplicatedCriteria, 1, &logger));
248 REQUIRE_SUCCESS(pfwStart(pfw, config, duplicatedCriteria, 1, &logger));
253 REQUIRE_SUCCESS(pfwStart(pfw, config, criteria, 0, &logger));
257 REQUIRE_SUCCESS(pfwStart(pfw, config, criteria, criterionNb, &logger));
258 REQUIRE_FAILURE(pfwStart(pfw, config, criteria, criterionNb, &logger));
263 REQUIRE_SUCCESS(pfwStart(pfw, config, criteria, criterionNb, &noLog));
266 REQUIRE_SUCCESS(pfwStart(pfw, config, criteria, criterionNb, NULL));
271 REQUIRE_FAILURE(pfwGetCriterion(pfw, criteria[0].name, &value));
274 REQUIRE_FAILURE(pfwSetCriterion(pfw, criteria[0].name, 1));
277 REQUIRE_FAILURE(pfwApplyConfigurations(pfw));
281 REQUIRE(pfwBindParameter(pfw, intParameterPath) == NULL);
286 REQUIRE_SUCCESS(pfwStart(pfw, config, criteria, criterionNb, &logger));
293 REQUIRE_FAILURE(pfwGetCriterion(pfw, NULL, &value));
296 REQUIRE_FAILURE(pfwGetCriterion(pfw, criteria[0].name, NULL));
299 REQUIRE_FAILURE(pfwGetCriterion(pfw, "Do not exist", &value));
305 REQUIRE_SUCCESS(pfwGetCriterion(pfw, criterionName, &value));
314 REQUIRE_FAILURE(pfwSetCriterion(pfw, NULL, 2));
317 REQUIRE_FAILURE(pfwSetCriterion(pfw, "Do not exist", 3));
323 REQUIRE_SUCCESS(pfwSetCriterion(pfw, criterionName, 3));
329 REQUIRE_SUCCESS(pfwGetCriterion(pfw, criterionName, &value));
338 REQUIRE_SUCCESS(pfwApplyConfigurations(pfw));
345 REQUIRE_FAILURE(pfwBindParameter(pfw, NULL) != NULL);
348 REQUIRE_FAILURE(pfwBindParameter(pfw, "do/not/exist") != NULL);
359 PfwParameterHandler *param = pfwBindParameter(pfw, intParameterPath);
382 PfwParameterHandler *param = pfwBindParameter(pfw, stringParameterPath);
407 pfwDestroy(pfw);