Lines Matching refs:cmdContent
71 char cmdContent[MAX_CMD_CONTENT_LEN + 1];
148 int ret2 = strcpy_s(resCmd->cmdContent, MAX_CMD_CONTENT_LEN, content + strlen(cmd->name));
162 DoCmdByIndex(cmdIndex, resCmd->cmdContent, nullptr);
188 EXPECT_EQ(0, strlen(curCmdLine.cmdContent));
192 EXPECT_EQ(0, strlen(curCmdLine.cmdContent));
196 EXPECT_EQ(0, strlen(curCmdLine.cmdContent));
200 EXPECT_EQ(0, strlen(curCmdLine.cmdContent));
216 EXPECT_EQ(0, strlen(curCmdLine.cmdContent));
254 EXPECT_EQ(0, strlen(curCmdLine.cmdContent));
272 EXPECT_EQ(0, strcmp("InitTestService", curCmdLine.cmdContent));
276 EXPECT_EQ(0, strcmp("InitTestDir", curCmdLine.cmdContent));
280 EXPECT_EQ(0, strcmp("0500 /bin/InitTestBin", curCmdLine.cmdContent));
284 EXPECT_EQ(0, strcmp("1000 1000 /bin/InitTestBin", curCmdLine.cmdContent));
288 EXPECT_EQ(0, strcmp("vfat /dev/mmcblk1 /sdcard rw,umask=000", curCmdLine.cmdContent));
317 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
336 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
353 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
381 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
388 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
395 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
402 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
409 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
437 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
444 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
473 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
490 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
508 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
672 EXPECT_TRUE(strlen(resCmd->cmdContent) > 0);
675 for (size_t i = 0; i < strlen(resCmd->cmdContent); ++i) {
676 EXPECT_NE(' ', resCmd->cmdContent[i]); // no spaces in service name
679 for (size_t i = 0; i < strlen(resCmd->cmdContent); ++i) {
680 EXPECT_NE('.', resCmd->cmdContent[i]); // no dots in path string
683 EXPECT_TRUE(strlen(resCmd->cmdContent) >= 6); // 0xxx x at least 6 characters
684 EXPECT_EQ('0', resCmd->cmdContent[0]);
685 EXPECT_EQ(' ', resCmd->cmdContent[4]); // 4 bytes, after 0xxx must be space
687 EXPECT_TRUE(resCmd->cmdContent[i] >= '0' && resCmd->cmdContent[i] <= '7');
689 for (size_t i = 5; i < strlen(resCmd->cmdContent); ++i) { // target starts from index 5
690 EXPECT_NE(' ', resCmd->cmdContent[i]); // no spaces allowed
693 EXPECT_TRUE(strlen(resCmd->cmdContent) >= 5); // x y z at least 5 characters
694 EXPECT_NE(' ', resCmd->cmdContent[0]); // should not start with space
695 EXPECT_NE(' ', resCmd->cmdContent[strlen(resCmd->cmdContent) - 1]); // should not end with space
698 for (size_t i = 1; i < strlen(resCmd->cmdContent); ++i) {
699 if (resCmd->cmdContent[i] != ' ') {
710 EXPECT_NE(' ', resCmd->cmdContent[0]); // should not start with space
712 EXPECT_NE(' ', resCmd->cmdContent[0]); // should not start with space
714 EXPECT_NE(' ', resCmd->cmdContent[0]); // should not start with space
716 EXPECT_NE(' ', resCmd->cmdContent[0]); // should not start with space
837 EXPECT_EQ(0, strcmp("/patch/fstab.cfg", curCmdLine.cmdContent));
856 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
867 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));
893 EXPECT_EQ(0, strcmp(cmdContentStr.c_str(), curCmdLine.cmdContent));