Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ec73036 authored by Myles Watson's avatar Myles Watson
Browse files

RootCanal: Add Reset command to handler

Bug: 154020729
Test: cert/run --host
Tag: #stability
Change-Id: I1685fabd179309c7db30205c458ab7d09e6f0b9c
parent 299f41d6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -263,4 +263,13 @@ void TestCommandHandler::StopTimer(const vector<std::string>& args) {
  send_response_(response_string_);
}

void TestCommandHandler::Reset(const std::vector<std::string>& args) {
  if (args.size() > 0) {
    LOG_INFO("Unused args: arg[0] = %s", args[0].c_str());
  }
  model_.Reset();
  response_string_ = "model reset";
  send_response_(response_string_);
}

}  // namespace test_vendor_lib
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@ class TestCommandHandler {

  void StopTimer(const std::vector<std::string>& args);

  void Reset(const std::vector<std::string>& args);

  // For manual testing
  void AddDefaults();