Lines Matching refs:action
115 for (const auto &action: testAction) {
116 LOG_DEBUGGER(INFO) << "message: " << action.message;
118 if (action.action == SocketAction::SEND) {
119 std::vector<std::string> cliCmdStr = Utils::SplitString(action.message, " ");
123 ASSERT(action.action == SocketAction::RECV);
125 HandleAcceptanceMessages(action, client, recv, success);
126 SendMessage(action, recv);
128 LOG_DEBUGGER(INFO) << "rule: " << action.rule;
144 void TestUtil::HandleAcceptanceMessages(ActionInfo action, WebSocketClient &client, std::string &recv, bool &success)
158 switch (action.rule) {
160 success = (recv == action.message);
164 success = (recv.find(action.message) != std::string::npos);
169 success = action.matchFunc(recv, action.message, needMoreMsg);
172 success = action.matchFunc(recv, action.message, needMoreMsg);
180 void TestUtil::SendMessage(ActionInfo action, std::string recv)
182 switch (action.event) {