#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/diagnostics/diagnostics_test.h"
#include "base/files/file_path.h"
#include "base/metrics/histogram_macros.h"
#include "base/path_service.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
namespace diagnostics {
namespace {
struct TestNameInfo { … };
const TestNameInfo kTestNameInfo[] = …;
static_assert …;
const TestNameInfo* FindTestInfo(DiagnosticsTestId id) { … }
}
DiagnosticsTest::DiagnosticsTest(DiagnosticsTestId id)
: … { … }
DiagnosticsTest::~DiagnosticsTest() { … }
bool DiagnosticsTest::Execute(DiagnosticsModel::Observer* observer,
DiagnosticsModel* model,
size_t index) { … }
bool DiagnosticsTest::Recover(DiagnosticsModel::Observer* observer,
DiagnosticsModel* model,
size_t index) { … }
void DiagnosticsTest::RecordOutcome(int outcome_code,
const std::string& additional_info,
DiagnosticsModel::TestResult result) { … }
base::FilePath DiagnosticsTest::GetUserDefaultProfileDir() { … }
int DiagnosticsTest::GetId() const { … }
std::string DiagnosticsTest::GetName() const { … }
std::string DiagnosticsTest::GetTitle() const { … }
DiagnosticsModel::TestResult DiagnosticsTest::GetResult() const { … }
int DiagnosticsTest::GetOutcomeCode() const { … }
std::string DiagnosticsTest::GetAdditionalInfo() const { … }
base::Time DiagnosticsTest::GetStartTime() const { … }
base::Time DiagnosticsTest::GetEndTime() const { … }
bool DiagnosticsTest::RecoveryImpl(DiagnosticsModel::Observer* observer) { … }
}