Home
last modified time | relevance | path

Searched refs:command (Results 1 - 10 of 10) sorted by relevance

/ide/tools/previewer/cli/
H A DCommandLineFactory.cpp77 std::unique_ptr<CommandLine> CommandLineFactory::CreateCommandLine(std::string command, in CreateCommandLine() argument
80 if (typeMap.find(command) == typeMap.end()) { in CreateCommandLine()
83 commandResult.Add("command", command.c_str()); in CreateCommandLine()
84 commandResult.Add("result", "Unsupported command"); in CreateCommandLine()
86 ELOG("Unsupported command"); in CreateCommandLine()
90 if (typeMap[command] == nullptr) { in CreateCommandLine()
93 ILOG("Create Command: %s", command.c_str()); in CreateCommandLine()
94 std::unique_ptr<CommandLine> cmdLine = typeMap[command](type, val, socket); in CreateCommandLine()
98 cmdLine->SetCommandName(command); in CreateCommandLine()
[all...]
H A DCommandLineInterface.cpp49 FLOG("CommandLineInterface command pipe connect failed"); in InitPipe()
130 std::string command = jsonData["command"].AsString(); in ProcessCommandMessage() local
131 if (CommandParser::GetInstance().IsStaticCard() && IsStaticIgnoreCmd(command)) { in ProcessCommandMessage()
136 CommandLineFactory::CreateCommandLine(command, type, val, *socket); in ProcessCommandMessage()
138 ELOG("Unsupported command"); in ProcessCommandMessage()
158 if (!jsonData.IsMember("type") || !jsonData.IsMember("command") || !jsonData.IsMember("version")) { in ProcessCommandValidate()
165 ELOG("Invalid command version!"); in ProcessCommandValidate()
220 std::unique_ptr<CommandLine> command = in ApplyConfigMembers() local
222 ApplyConfigCommands(key, command); in ApplyConfigMembers()
[all...]
H A DCommandLineFactory.h28 static std::unique_ptr<CommandLine> CreateCommandLine(std::string command,
H A DCommandLineInterface.h38 void ApplyConfigCommands(const std::string& key, const std::unique_ptr<CommandLine>& command) const;
H A DCommandLine.h39 void SetCommandName(std::string command);
H A DCommandLine.cpp51 ELOG("CheckAndRun: invalid command params"); in CheckAndRun()
108 void CommandLine::SetCommandName(std::string command) in SetCommandName() argument
110 this->commandName = command; in SetCommandName()
116 this->commandResult.Add("command", this->commandName.c_str()); in SetCommandResult()
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineInterfaceTest.cpp169 std::string msg = R"({"type" : "action", "command" : "MousePress", "version" : "1.0.1"})"; in TEST()
174 std::string msg0 = R"({"type" : "aaaaa", "command" : "MousePress", "bbbb" : "1.0.1", "args" : {}})"; in TEST()
179 std::string msg1 = R"({"type" : "aaaaa", "command" : "MousePress", "bbbb" : "1.0.1"})"; in TEST()
184 std::string msg2 = R"({"type" : "aaaaa", "command" : "MousePress", "version" : "1.0.1"})"; in TEST()
204 msg = R"({"type" : "action", "command" : "MousePress"})"; in TEST()
207 msg = R"({"type" : "action", "command" : "MousePress", "version" : "s.0.1"})"; in TEST()
209 EXPECT_FALSE(instance.ProcessCommandValidate(true, jsonData4, "Invalid command version")); in TEST()
210 msg = R"({"type" : "action", "command" : "MousePress", "version" : "1.0.1"})"; in TEST()
327 std::string msg = R"({"type":"action","command":"MousePress"})"; in TEST()
H A DCommandLineTest.cpp75 BackClickedCommand command(type, args, *socket); in TEST_F()
77 command.CheckAndRun(); in TEST_F()
85 InspectorJSONTree command(type, args, *socket); in TEST_F()
87 command.CheckAndRun(); in TEST_F()
95 InspectorDefault command(type, args, *socket); in TEST_F()
97 command.CheckAndRun(); in TEST_F()
258 ReloadRuntimePageCommand command(type, args2, *socket); in TEST_F()
260 command.CheckAndRun(); in TEST_F()
357 LoadDocumentCommand command(type, args2, *socket); in TEST_F()
359 command in TEST_F()
[all...]
/ide/tools/previewer/util/
H A DCommandParser.cpp57 Register("-s", 1, "Local socket name <socket-name> for command line interface."); in CommandParser()
517 bool CommandParser::IsResolutionArgValid(std::string command) in IsResolutionArgValid() argument
519 std::vector<std::string> value = Values(command); in IsResolutionArgValid()
520 uint32_t size = regsArgsCountMap[command]; in IsResolutionArgValid()
H A DCommandParser.h173 bool IsResolutionArgValid(std::string command);

Completed in 10 milliseconds