Home
last modified time | relevance | path

Searched refs:cmdLine (Results 1 - 16 of 16) sorted by relevance

/base/update/updater/test/unittest/applypatch_test/
H A Dcommands_unittest.cpp56 std::string cmdLine = std::string("move ") + hashValue + " " + blockInfo; in HWTEST_F() local
60 cmd->Init(cmdLine); in HWTEST_F()
66 EXPECT_EQ(cmd->GetCommandLine(), cmdLine); in HWTEST_F()
74 std::string cmdLine = std::string("move ") + hashValue + " " + blockInfo; in HWTEST_F() local
78 EXPECT_EQ(cmd->Init(cmdLine), true); in HWTEST_F()
79 cmdLine = "abort"; in HWTEST_F()
80 EXPECT_EQ(cmd->Init(cmdLine), true); in HWTEST_F()
81 cmdLine = "bsdiff 1,1"; in HWTEST_F()
82 EXPECT_EQ(cmd->Init(cmdLine), true); in HWTEST_F()
83 cmdLine in HWTEST_F()
[all...]
H A Dcommandsfunction_unittest.cpp37 CommandResult TestCommandFnExec(std::shared_ptr<Command> cmd, std::string cmdLine) in TestCommandFnExec() argument
39 cmd->Init(cmdLine); in TestCommandFnExec()
78 std::string cmdLine = std::string("erase 2,0,1"); in HWTEST_F() local
79 CommandResult ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); in HWTEST_F()
81 cmdLine = "free 2,0,1"; in HWTEST_F()
82 ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); in HWTEST_F()
85 cmdLine = "move ad7facb2586fc6e966c004d7d1d16b024f5805ff7cb47c7a85dabd8b48892ca7 2,3,4 1 2,1,2"; in HWTEST_F()
87 ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); in HWTEST_F()
89 cmdLine = R"(bsdiff 0 132 ad7facb2586fc6e966c004d7d1d16b024f5805ff7cb4 in HWTEST_F()
94 ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); in HWTEST_F()
[all...]
H A Dblockset_unittest.cpp117 std::string cmdLine = std::string("move ") + hashValue + " " + blockInfo; in HWTEST_F() local
126 cmd->Init(cmdLine); in HWTEST_F()
/base/startup/init/test/unittest/fs_manager/
H A Dlibfs_hvb_unittest.cpp48 const char *cmdLine; in HWTEST_F() local
60 cmdLine = "ohos.boot.hvb.hash_algo=test "; // HVB_CMDLINE_HASH_ALG in HWTEST_F()
61 CreateTestFile(BOOT_CMD_LINE, cmdLine); in HWTEST_F()
65 cmdLine = "ohos.boot.hvb.digest=1 "; // HVB_CMDLINE_CERT_DIGEST in HWTEST_F()
66 CreateTestFile(BOOT_CMD_LINE, cmdLine); in HWTEST_F()
71 cmdLine = "ohos.boot.hvb.hash_algo=test "; in HWTEST_F()
72 CreateTestFile(BOOT_CMD_LINE, cmdLine); in HWTEST_F()
73 cmdLine = "ohos.boot.hvb.digest=1234 "; in HWTEST_F()
74 CreateTestFile(BOOT_CMD_LINE, cmdLine); in HWTEST_F()
80 cmdLine in HWTEST_F()
123 const char *cmdLine; HWTEST_F() local
[all...]
/base/startup/init/test/unittest/fs_manager/erofs/
H A Derofs_common_unittest.cpp32 const char *cmdLine; in HWTEST_F() local
34 cmdLine = "test=test"; in HWTEST_F()
35 CreateTestFile(BOOT_CMD_LINE, cmdLine); in HWTEST_F()
40 cmdLine = "oemmode=test"; in HWTEST_F()
41 CreateTestFile(BOOT_CMD_LINE, cmdLine); in HWTEST_F()
46 cmdLine = "oemmode=test buildvariant=user"; in HWTEST_F()
47 CreateTestFile(BOOT_CMD_LINE, cmdLine); in HWTEST_F()
52 cmdLine = "oemmode=test buildvariant=eng"; in HWTEST_F()
53 CreateTestFile(BOOT_CMD_LINE, cmdLine); in HWTEST_F()
H A Derofs_remount_unittest.cpp33 const char *cmdLine; in HWTEST_F() local
/base/update/updater/services/applypatch/
H A Dcommand.cpp23 bool Command::Init(const std::string &cmdLine) in Init() argument
25 if (cmdLine.empty()) return false; in Init()
26 cmdLine_ = std::move(cmdLine); in Init()
/base/update/updater/services/include/applypatch/
H A Dapply_patch.h25 std::string cmdLine; member
/base/hiviewdfx/hiview/base/utility/
H A Dstring_util.cpp437 std::string FormatCmdLine(const std::string& cmdLine) in FormatCmdLine() argument
440 size_t endPos = cmdLine.size(); in FormatCmdLine()
441 for (size_t i = 0; i < cmdLine.size(); i++) { in FormatCmdLine()
442 if (cmdLine[i] == '/') { in FormatCmdLine()
444 } else if (cmdLine[i] == '\0') { in FormatCmdLine()
449 return cmdLine.substr(startPos, endPos - startPos); in FormatCmdLine()
/base/startup/init/services/modules/bootchart/
H A Dbootchart.c83 char *cmdLine = ReadFileToBuffer("/proc/cmdline", g_bootchartCtrl->buffer, g_bootchartCtrl->bufferSize); in BootchartLogHeader() local
84 PLUGIN_CHECK(cmdLine != NULL, return, "Failed to open file "BOOTCHART_OUTPUT_PATH"header"); in BootchartLogHeader()
96 (void)fprintf(file, "system.kernel.options = %s\n", cmdLine); in BootchartLogHeader()
/base/startup/init/services/param/trigger/
H A Dtrigger_processor.c207 static int GetCommandInfo(const char *cmdLine, int *cmdKeyIndex, char **content) in GetCommandInfo() argument
209 const char *matchCmd = GetMatchCmd(cmdLine, cmdKeyIndex); in GetCommandInfo()
210 PARAM_CHECK(matchCmd != NULL, return -1, "Command not support %s", cmdLine); in GetCommandInfo()
211 char *str = strstr(cmdLine, matchCmd); in GetCommandInfo()
/base/startup/init/test/unittest/init/
H A Dcmds_unittest.cpp87 auto checkMkdirCmd = [=](const char *mkdirFile, const char *cmdLine) { in HWTEST_F()
88 DoCmdByName("mkdir ", cmdLine); in HWTEST_F()
/base/startup/init/test/unittest/modules/
H A Deng_unittest.cpp248 const char *cmdLine = "ohos.boot.root_package=off "; in HWTEST_F() local
249 CreateTestFile(BOOT_CMD_LINE, cmdLine); in HWTEST_F()
/base/hiviewdfx/hiview/base/utility/include/
H A Dstring_util.h156 std::string FormatCmdLine(const std::string& cmdLine);
/base/startup/init/test/unittest/param/
H A Dparam_stub.cpp411 const char *cmdLine = "bootgroup=device.boot.group earlycon=uart8250,mmio32,0xfe660000 " in PrepareCmdLineData() local
420 CreateTestFile(BOOT_CMD_LINE, cmdLine); in PrepareCmdLineData()
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dnapi_webview_controller.cpp1186 const std::string& cmdLine = WebviewController::customeSchemeCmdLine_; in InnerGetCustomeSchemeCmdLine() local
1187 napi_create_string_utf8(env, cmdLine.c_str(), cmdLine.length(), &result); in InnerGetCustomeSchemeCmdLine()

Completed in 18 milliseconds