1#ifndef YAZE_APP_CORE_TESTING_TEST_RECORDER_H_
2#define YAZE_APP_CORE_TESTING_TEST_RECORDER_H_
8#include "absl/status/status.h"
9#include "absl/status/statusor.h"
10#include "absl/synchronization/mutex.h"
11#include "absl/time/time.h"
55#if defined(YAZE_WITH_GRPC)
56 HarnessTestStatus final_status = HarnessTestStatus::kUnspecified;
67 absl::Duration
duration = absl::ZeroDuration();
85 absl::StatusOr<StopRecordingSummary>
Stop(
const std::string& recording_id,
97 ABSL_EXCLUSIVE_LOCKS_REQUIRED(
mu_);
98 absl::StatusOr<StopRecordingSummary>
StopLocked(
const std::string& recording_id,
100 ABSL_EXCLUSIVE_LOCKS_REQUIRED(
mu_);
102 ABSL_EXCLUSIVE_LOCKS_REQUIRED(
mu_);
105 ABSL_EXCLUSIVE_LOCKS_REQUIRED(
mu_);
ScopedSuspension(const ScopedSuspension &)=delete
ScopedSuspension & operator=(const ScopedSuspension &)=delete
void RecordStepLocked(const RecordedStep &step) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
static std::string GenerateRecordingId()
absl::StatusOr< StopRecordingSummary > StopLocked(const std::string &recording_id, bool discard) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
absl::Status PopulateFinalStatusLocked() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
TestManager *const test_manager_
absl::StatusOr< std::string > Start(const RecordingOptions &options)
absl::StatusOr< StopRecordingSummary > Stop(const std::string &recording_id, bool discard)
bool recording_ ABSL_GUARDED_BY(mu_)
ScopedSuspension Suspend()
static const char * ActionTypeToString(ActionType type)
absl::StatusOr< std::string > StartLocked(const RecordingOptions &options) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
void RecordStep(const RecordedStep &step)
std::string CurrentRecordingId() const
Main namespace for the application.
std::string expected_value
std::vector< std::string > assertion_failures
std::map< std::string, int32_t > metrics
std::string final_error_message