Lines Matching defs:value
82 char value[] = "OEM-10.1.0";
83 ret = SetParameter(key, value);
89 * @tc.name : SetParameter legal test with key 31 bytes, value 127 bytes
109 * @tc.name : SetParameter legal test with key is nullptr, value is nullptr
116 char value[] = "test with null";
117 ret = SetParameter(nullptr, value);
127 * @tc.name : SetParameter legal test with key is NULL, value is NULL
166 char value[] = "set value with illegal key";
167 ret = SetParameter(key, value);
173 * @tc.name : SetParameter legal test with value is 96 or more than 96 bytes
202 char value[StartUpLite::MAX_LEN] = {0};
203 ret = GetParameter(key, defSysParam.c_str(), value, StartUpLite::MAX_LEN);
205 value[MAX_LEN - 1] = '\0';
206 EXPECT_STREQ(value, rightVal);
211 * @tc.name : GetParameter legal test with defaut value point is nullptr
220 char value[StartUpLite::MAX_LEN] = {0};
221 ret = GetParameter(key, nullptr, value, StartUpLite::MAX_LEN);
223 value[MAX_LEN - 1] = '\0';
224 EXPECT_STREQ(value, rightVal);
229 * @tc.name : GetParameter legal test with length is 95 bytes, value is 95 bytes
255 * @tc.name : GetParameter legal test with value length is too short
263 char value[StartUpLite::WRONG_LEN] = {0};
264 ret = GetParameter(key, defSysParam.c_str(), value, StartUpLite::WRONG_LEN);
270 * @tc.name : GetParameter legal test with value point is nullptr
313 char value[StartUpLite::MAX_LEN] = {0};
314 ret = GetParameter(key, defSysParam.c_str(), value, StartUpLite::MAX_LEN);
315 EXPECT_STREQ(value, defSysParam.c_str());
327 char value[StartUpLite::MAX_LEN] = {0};
328 ret = GetParameter(nullptr, defSysParam.c_str(), value, StartUpLite::MAX_LEN);
342 char value[StartUpLite::MAX_LEN] = {0};
343 ret = GetParameter(key, defSysParam.c_str(), value, StartUpLite::MAX_LEN);
344 EXPECT_STREQ(value, defSysParam.c_str());
354 const char *value = nullptr;
357 value = getDefPara[loop].fun();
358 EXPECT_STRNE(value, (char *)nullptr);