Home
last modified time | relevance | path

Searched refs:StringValue (Results 1 – 9 of 9) sorted by relevance

/base/update/updater/test/unittest/updater_binary/
Dupdate_image_patch_unittest.cpp55 context.AddInputParam(std::make_shared<StringValue>("/data/updater/patchfile")); in TestImgPatch02()
67 context.AddInputParam(std::make_shared<StringValue>("")); in TestImgPatch03()
68 context.AddInputParam(std::make_shared<StringValue>("srcSize")); in TestImgPatch03()
69 context.AddInputParam(std::make_shared<StringValue>("srcHash")); in TestImgPatch03()
70 context.AddInputParam(std::make_shared<StringValue>("destSize")); in TestImgPatch03()
71 context.AddInputParam(std::make_shared<StringValue>("destHash")); in TestImgPatch03()
72 context.AddInputParam(std::make_shared<StringValue>("/data/updater/patchfile")); in TestImgPatch03()
84 context.AddInputParam(std::make_shared<StringValue>("/vendortest")); in TestImgPatch04()
85 context.AddInputParam(std::make_shared<StringValue>("srcSize")); in TestImgPatch04()
86 context.AddInputParam(std::make_shared<StringValue>("srcHash")); in TestImgPatch04()
[all …]
/base/update/updater/test/unittest/script/script_instruction/
Dscript_registercmd_unittest.cpp72 context.AddInputParam(std::make_shared<StringValue>(TEST_VALID_LIB_PATH)); in TestRegisterCmd02()
86 context.AddInputParam(std::make_shared<StringValue>("uInstruction1")); in TestRegisterCmd03()
87 context.AddInputParam(std::make_shared<StringValue>(TEST_VALID_LIB_PATH)); in TestRegisterCmd03()
Dscript_loadscript_unittest.cpp72 context.AddInputParam(std::make_shared<StringValue>("script1")); in TestLoadScript02()
73 context.AddInputParam(std::make_shared<StringValue>("invalid param")); in TestLoadScript02()
87 context.AddInputParam(std::make_shared<StringValue>("script")); in TestLoadScript03()
Dbasic_instruction_unittest.cpp63 return ctx.AddInputParam(std::make_shared<StringValue>(v)); in AddInputParamImpl()
104 context.AddInputParam(std::make_shared<StringValue>("this is a test")); in TestBasicInstructionIsSubString02()
Dscript_updateprocesser_unittest.cpp161 context.AddInputParam(std::make_shared<StringValue>(content)); in TestUpdateProcesserPrint()
/base/update/updater/services/script/script_interpreter/
Dscript_context.cpp53 UScriptValuePtr valuePtr = std::make_shared<StringValue>(value); in PushParam()
79 return GetParam<std::string, StringValue>(index, value); in GetParam()
427 UScriptValuePtr StringValue::ComputerReturn(int32_t action, UScriptValuePtr rightValue, in ComputerReturn()
459 UScriptValuePtr StringValue::Computer(int32_t action, UScriptValuePtr value) in Computer()
477 return make_shared<StringValue>(str + to_string(integerValue->GetValue())); in Computer()
485 return make_shared<StringValue>(str + to_string(floatValue->GetValue())); in Computer()
487 StringValue* stringValue = (StringValue*)(rightValue.get()); in Computer()
493 return make_shared<StringValue>(str + stringValue->GetValue()); in Computer()
503 int32_t StringValue::ComputerLogic(UScriptValuePtr rightValue) const in ComputerLogic()
505 StringValue* value = (StringValue*)(rightValue.get()); in ComputerLogic()
[all …]
Dscript_context.h114 class StringValue : public UScriptValue {
116 explicit StringValue(std::string value) : UScriptValue(UScriptValue::VALUE_TYPE_STRING), in StringValue() function
118 ~StringValue() override {} in ~StringValue()
Dscript_expression.cpp69 return std::make_shared<StringValue>(this->value_); in Execute()
/base/update/updater/test/unittest/script/
Dscript_interpreter_unittest.cpp72 std::unique_ptr<StringValue> sv = std::make_unique<StringValue>("2222222222222"); in TestScriptInterpreterScriptValue()
164 UScriptValuePtr value = std::make_shared<StringValue>("100"); in TestStringValueComputer()
174 UScriptValuePtr rightValue3 = std::make_shared<StringValue>("666666"); in TestStringValueComputer()