| 481 | } |
| 482 | |
| 483 | void ODClientTest::sendConsoleCmd(const std::string& cmd) |
| 484 | { |
| 485 | std::vector<std::string> tokens; |
| 486 | boost::algorithm::split(tokens, |
| 487 | cmd, boost::algorithm::is_space(), |
| 488 | boost::algorithm::token_compress_on); |
| 489 | uint32_t nb = tokens.size(); |
| 490 | |
| 491 | ODPacket packSend; |
| 492 | packSend << ClientNotificationType::askExecuteConsoleCommand << nb; |
| 493 | for(const std::string& token : tokens) |
| 494 | packSend << token; |
| 495 | |
| 496 | send(packSend); |
| 497 | } |
no test coverage detected