Lines Matching refs:script
168 std::string script = is_verify ? "block_image_verify" : "block_image_update"; in RunBlockImageUpdate() local
169 script += R"((")" + image_file + R"(", package_extract_file("transfer_list"), ")" + new_data + in RunBlockImageUpdate()
171 entries.emplace(Updater::SCRIPT_NAME, script); in RunBlockImageUpdate()
357 std::string script("package_extract_file(\"a.txt\", \"" + std::string(temp_file1.path) + "\")"); in TEST_F() local
358 expect("t", script, kNoCause, &updater_); in TEST_F()
366 script = "package_extract_file(\"b.txt\", \"" + std::string(temp_file1.path) + "\")"; in TEST_F()
367 expect("t", script, kNoCause, &updater_); in TEST_F()
373 script = "package_extract_file(\"doesntexist\", \"" + std::string(temp_file1.path) + "\")"; in TEST_F()
374 expect("", script, kNoCause, &updater_); in TEST_F()
377 script = "package_extract_file(\"a.txt\", \"/dev/full\")"; in TEST_F()
378 expect("", script, kNoCause, &updater_); in TEST_F()
382 script = "blob_to_string(package_extract_file(\"a.txt\")) == \"" + kATxtContents + "\""; in TEST_F()
383 expect("t", script, kNoCause, &updater_); in TEST_F()
385 script = "blob_to_string(package_extract_file(\"b.txt\")) == \"" + kBTxtContents + "\""; in TEST_F()
386 expect("t", script, kNoCause, &updater_); in TEST_F()
389 script = "package_extract_file(\"doesntexist\")"; in TEST_F()
390 expect(nullptr, script, kPackageExtractFileFailure, &updater_); in TEST_F()
400 std::string script("write_value(\"foo\", \""s + temp_file.path + "\");"); in TEST_F() local
401 expect("t", script, kNoCause); in TEST_F()
403 script = "read_file(\""s + temp_file.path + "\") == \"foo\""; in TEST_F()
404 expect("t", script, kNoCause); in TEST_F()
406 script = "read_file(\""s + temp_file.path + "\") == \"bar\""; in TEST_F()
407 expect("", script, kNoCause); in TEST_F()
410 script = "read_file(\"/doesntexist\")"; in TEST_F()
411 expect("", script, kNoCause); in TEST_F()
506 std::string script("write_value(\"" + value + "\", \"" + std::string(temp_file.path) + "\")"); in TEST_F() local
507 expect("t", script, kNoCause); in TEST_F()
515 script = "write_value(\"\", \"" + std::string(temp_file.path) + "\")"; in TEST_F()
516 expect("t", script, kNoCause); in TEST_F()
523 script = "write_value(\"value\", \"/proc/0/file1\")"; in TEST_F()
524 expect("", script, kNoCause); in TEST_F()
542 std::string script("get_stage(\"" + temp_file + "\")"); in TEST_F() local
543 expect("2/3", script, kNoCause); in TEST_F()
546 script = "get_stage(\"doesntexist\")"; in TEST_F()
547 expect("", script, kNoCause); in TEST_F()
566 std::string script("set_stage(\"" + temp_file + "\", \"1/3\")"); in TEST_F() local
567 expect(tf.path, script, kNoCause); in TEST_F()
578 script = "set_stage(\"doesntexist\", \"1/3\")"; in TEST_F()
579 expect("", script, kNoCause); in TEST_F()
581 script = "set_stage(\"/dev/full\", \"1/3\")"; in TEST_F()
582 expect("", script, kNoCause); in TEST_F()