Summary: Part of sonar to flipper rename Reviewed By: passy Differential Revision: D9919821 fbshipit-source-id: a44a2a04d5463750f884f8bf1328e02d56593e82
31 lines
580 B
C++
31 lines
580 B
C++
/*
|
|
* Copyright (c) 2018-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the LICENSE
|
|
* file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
#include "SonarStep.h"
|
|
#include "FlipperState.h"
|
|
|
|
void SonarStep::complete() {
|
|
isLogged = true;
|
|
state->success(name);
|
|
}
|
|
|
|
void SonarStep::fail(std::string message) {
|
|
isLogged = true;
|
|
state->failed(name, message);
|
|
}
|
|
|
|
SonarStep::SonarStep(std::string step, FlipperState* s) {
|
|
state = s;
|
|
name = step;
|
|
}
|
|
|
|
SonarStep::~SonarStep() {
|
|
if (!isLogged) {
|
|
state->failed(name, "");
|
|
}
|
|
}
|