Searched refs:DiagnosticsModel (Results 1 – 12 of 12) sorted by relevance
/external/chromium_org/chrome/browser/diagnostics/ |
D | diagnostics_test.cc | 17 : id_(id), outcome_code_(-1), result_(DiagnosticsModel::TEST_NOT_RUN) {} in DiagnosticsTest() 21 bool DiagnosticsTest::Execute(DiagnosticsModel::Observer* observer, in Execute() 22 DiagnosticsModel* model, in Execute() 25 result_ = DiagnosticsModel::TEST_RUNNING; in Execute() 32 bool DiagnosticsTest::Recover(DiagnosticsModel::Observer* observer, in Recover() 33 DiagnosticsModel* model, in Recover() 35 result_ = DiagnosticsModel::RECOVERY_RUNNING; in Recover() 37 result_ = keep_going ? DiagnosticsModel::RECOVERY_OK in Recover() 38 : DiagnosticsModel::RECOVERY_FAIL_STOP; in Recover() 40 if (result_ == DiagnosticsModel::RECOVERY_OK) { in Recover() [all …]
|
D | diagnostics_test.h | 28 class DiagnosticsTest : public DiagnosticsModel::TestInfo { 36 bool Execute(DiagnosticsModel::Observer* observer, DiagnosticsModel* model, 41 bool Recover(DiagnosticsModel::Observer* observer, DiagnosticsModel* model, 46 outcome_code, additional_info, DiagnosticsModel::TEST_FAIL_STOP); in RecordStopFailure() 51 outcome_code, additional_info, DiagnosticsModel::TEST_FAIL_CONTINUE); in RecordFailure() 55 RecordOutcome(0, additional_info, DiagnosticsModel::TEST_OK); in RecordSuccess() 60 DiagnosticsModel::TestResult result); 68 virtual DiagnosticsModel::TestResult GetResult() const OVERRIDE; 75 virtual bool ExecuteImpl(DiagnosticsModel::Observer* observer) = 0; 79 virtual bool RecoveryImpl(DiagnosticsModel::Observer* observer); [all …]
|
D | diagnostics_model_unittest.cc | 32 scoped_ptr<DiagnosticsModel> model_; 39 class UTObserver: public DiagnosticsModel::Observer { 48 virtual void OnTestFinished(int index, DiagnosticsModel* model) OVERRIDE { in OnTestFinished() 51 EXPECT_NE(DiagnosticsModel::TEST_FAIL_STOP, in OnTestFinished() 56 virtual void OnAllTestsDone(DiagnosticsModel* model) OVERRIDE { in OnAllTestsDone() 61 virtual void OnRecoveryFinished(int index, DiagnosticsModel* model) OVERRIDE { in OnRecoveryFinished() 64 EXPECT_NE(DiagnosticsModel::RECOVERY_FAIL_STOP, in OnRecoveryFinished() 69 virtual void OnAllRecoveryDone(DiagnosticsModel* model) OVERRIDE { in OnAllRecoveryDone() 92 EXPECT_EQ(DiagnosticsModel::kDiagnosticsTestCount, available); in TEST_F() 94 EXPECT_EQ(DiagnosticsModel::TEST_NOT_RUN, model_->GetTest(0).GetResult()); in TEST_F() [all …]
|
D | diagnostics_controller_unittest.cc | 72 scoped_ptr<DiagnosticsModel> model_; 88 const DiagnosticsModel& results = in TEST_F() 91 EXPECT_EQ(DiagnosticsModel::kDiagnosticsTestCount, results.GetTestRunCount()); in TEST_F() 93 const DiagnosticsModel::TestInfo& info(results.GetTest(i)); in TEST_F() 94 EXPECT_EQ(DiagnosticsModel::TEST_OK, info.GetResult()) << "Test: " in TEST_F() 103 const DiagnosticsModel& results = in TEST_F() 106 EXPECT_EQ(DiagnosticsModel::kDiagnosticsTestCount, results.GetTestRunCount()); in TEST_F() 108 const DiagnosticsModel::TestInfo& info(results.GetTest(i)); in TEST_F() 109 EXPECT_EQ(DiagnosticsModel::RECOVERY_OK, info.GetResult()) in TEST_F() 121 const DiagnosticsModel& results = in TEST_F() [all …]
|
D | diagnostics_model.h | 20 class DiagnosticsModel { 46 virtual void OnTestFinished(int index, DiagnosticsModel* model) = 0; 48 virtual void OnAllTestsDone(DiagnosticsModel* model) = 0; 50 virtual void OnRecoveryFinished(int index, DiagnosticsModel* model) = 0; 52 virtual void OnAllRecoveryDone(DiagnosticsModel* model) = 0; 83 virtual ~DiagnosticsModel() {} in ~DiagnosticsModel() 91 virtual void RunAll(DiagnosticsModel::Observer* observer) = 0; 93 virtual void RecoverAll(DiagnosticsModel::Observer* observer) = 0; 105 DiagnosticsModel* MakeDiagnosticsModel(const base::CommandLine& cmdline);
|
D | diagnostics_writer.h | 17 class DiagnosticsWriter : public DiagnosticsModel::Observer { 40 virtual void OnTestFinished(int index, DiagnosticsModel* model) OVERRIDE; 41 virtual void OnAllTestsDone(DiagnosticsModel* model) OVERRIDE; 42 virtual void OnRecoveryFinished(int index, DiagnosticsModel* model) OVERRIDE; 43 virtual void OnAllRecoveryDone(DiagnosticsModel* model) OVERRIDE;
|
D | diagnostics_model.cc | 27 const int DiagnosticsModel::kDiagnosticsTestCount = 18; 29 const int DiagnosticsModel::kDiagnosticsTestCount = 14; 32 const int DiagnosticsModel::kDiagnosticsTestCount = 18; 34 const int DiagnosticsModel::kDiagnosticsTestCount = 16; 48 class DiagnosticsModelImpl : public DiagnosticsModel { 58 virtual void RunAll(DiagnosticsModel::Observer* observer) OVERRIDE { in RunAll() 82 virtual void RecoverAll(DiagnosticsModel::Observer* observer) OVERRIDE { in RecoverAll() 234 DiagnosticsModel* MakeDiagnosticsModel(const CommandLine& cmdline) { in MakeDiagnosticsModel()
|
D | diagnostics_writer.cc | 225 void DiagnosticsWriter::OnTestFinished(int index, DiagnosticsModel* model) { in OnTestFinished() 226 const DiagnosticsModel::TestInfo& test_info = model->GetTest(index); in OnTestFinished() 227 bool success = (DiagnosticsModel::TEST_OK == test_info.GetResult()); in OnTestFinished() 235 void DiagnosticsWriter::OnAllTestsDone(DiagnosticsModel* model) { in OnAllTestsDone() 240 void DiagnosticsWriter::OnRecoveryFinished(int index, DiagnosticsModel* model) { in OnRecoveryFinished() 241 const DiagnosticsModel::TestInfo& test_info = model->GetTest(index); in OnRecoveryFinished() 245 void DiagnosticsWriter::OnAllRecoveryDone(DiagnosticsModel* model) { in OnAllRecoveryDone()
|
D | recon_diagnostics.cc | 54 virtual bool ExecuteImpl(DiagnosticsModel::Observer* observer) OVERRIDE { in ExecuteImpl() 110 virtual bool ExecuteImpl(DiagnosticsModel::Observer* observer) OVERRIDE { in ExecuteImpl() 139 virtual bool ExecuteImpl(DiagnosticsModel::Observer* observer) OVERRIDE { in ExecuteImpl() 181 virtual bool ExecuteImpl(DiagnosticsModel::Observer* observer) OVERRIDE { in ExecuteImpl() 186 DiagnosticsModel::TEST_FAIL_CONTINUE); in ExecuteImpl() 190 DiagnosticsModel::TEST_OK); in ExecuteImpl() 243 virtual bool ExecuteImpl(DiagnosticsModel::Observer* observer) OVERRIDE { in ExecuteImpl() 296 virtual bool ExecuteImpl(DiagnosticsModel::Observer* observer) OVERRIDE { in ExecuteImpl() 360 virtual bool ExecuteImpl(DiagnosticsModel::Observer* observer) OVERRIDE { in ExecuteImpl()
|
D | diagnostics_controller.h | 18 class DiagnosticsModel; variable 35 const DiagnosticsModel& GetResults() const; 55 scoped_ptr<DiagnosticsModel> model_;
|
D | sqlite_diagnostics.cc | 47 virtual bool RecoveryImpl(DiagnosticsModel::Observer* observer) OVERRIDE { in RecoveryImpl() 72 virtual bool ExecuteImpl(DiagnosticsModel::Observer* observer) OVERRIDE { in ExecuteImpl() 85 DiagnosticsModel::TEST_FAIL_CONTINUE); in ExecuteImpl() 89 DiagnosticsModel::TEST_OK); in ExecuteImpl()
|
D | diagnostics_controller.cc | 33 const DiagnosticsModel& DiagnosticsController::GetResults() const { in GetResults()
|