| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_METRICS_H_ | 5 #ifndef CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_METRICS_H_ |
| 6 #define CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_METRICS_H_ | 6 #define CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_METRICS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace diagnostics { | 10 namespace diagnostics { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 DIAGNOSTICS_PATH_RESOURCES_TEST, | 25 DIAGNOSTICS_PATH_RESOURCES_TEST, |
| 26 DIAGNOSTICS_PATH_USER_DATA_TEST, | 26 DIAGNOSTICS_PATH_USER_DATA_TEST, |
| 27 DIAGNOSTICS_VERSION_TEST, | 27 DIAGNOSTICS_VERSION_TEST, |
| 28 DIAGNOSTICS_SQLITE_INTEGRITY_APP_CACHE_TEST, | 28 DIAGNOSTICS_SQLITE_INTEGRITY_APP_CACHE_TEST, |
| 29 DIAGNOSTICS_SQLITE_INTEGRITY_ARCHIVED_HISTORY_TEST_OBSOLETE, | 29 DIAGNOSTICS_SQLITE_INTEGRITY_ARCHIVED_HISTORY_TEST_OBSOLETE, |
| 30 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST, | 30 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST, |
| 31 DIAGNOSTICS_SQLITE_INTEGRITY_DATABASE_TRACKER_TEST, | 31 DIAGNOSTICS_SQLITE_INTEGRITY_DATABASE_TRACKER_TEST, |
| 32 DIAGNOSTICS_SQLITE_INTEGRITY_HISTORY_TEST, | 32 DIAGNOSTICS_SQLITE_INTEGRITY_HISTORY_TEST, |
| 33 DIAGNOSTICS_SQLITE_INTEGRITY_NSS_CERT_TEST, | 33 DIAGNOSTICS_SQLITE_INTEGRITY_NSS_CERT_TEST, |
| 34 DIAGNOSTICS_SQLITE_INTEGRITY_NSS_KEY_TEST, | 34 DIAGNOSTICS_SQLITE_INTEGRITY_NSS_KEY_TEST, |
| 35 DIAGNOSTICS_SQLITE_INTEGRITY_THUMBNAILS_TEST, | 35 DIAGNOSTICS_SQLITE_INTEGRITY_FAVICONS_TEST, |
| 36 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, | 36 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, |
| 37 DIAGNOSTICS_SQLITE_INTEGRITY_TOPSITES_TEST, |
| 37 // Add new entries immediately above this comment. Do not reorder or renumber | 38 // Add new entries immediately above this comment. Do not reorder or renumber |
| 38 // the entries, as they are tied to historical enum values in the UMA stats. | 39 // the entries, as they are tied to historical enum values in the UMA stats. |
| 39 // If you add an entry, you will need to also add an entry to kTestNameInfo, | 40 // If you add an entry, you will need to also add an entry to kTestNameInfo, |
| 40 // and to the TEST_CASES macro in the .cc. | 41 // and to the TEST_CASES macro in the .cc. |
| 41 | 42 |
| 42 // This must always be last in the list. | 43 // This must always be last in the list. |
| 43 DIAGNOSTICS_TEST_ID_COUNT | 44 DIAGNOSTICS_TEST_ID_COUNT |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 // Enumeration of metrics for UMA recording of recovery runs. | 47 // Enumeration of metrics for UMA recording of recovery runs. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 71 // will be called before the localization services are initialized. | 72 // will be called before the localization services are initialized. |
| 72 std::string GetTestDescription(DiagnosticsTestId id); | 73 std::string GetTestDescription(DiagnosticsTestId id); |
| 73 | 74 |
| 74 // These record an UMA metric for the given test or recovery operation. | 75 // These record an UMA metric for the given test or recovery operation. |
| 75 void RecordUMARecoveryResult(DiagnosticsTestId id, RunResultMetrics result); | 76 void RecordUMARecoveryResult(DiagnosticsTestId id, RunResultMetrics result); |
| 76 void RecordUMATestResult(DiagnosticsTestId id, RunResultMetrics result); | 77 void RecordUMATestResult(DiagnosticsTestId id, RunResultMetrics result); |
| 77 | 78 |
| 78 } // namespace diagnostics | 79 } // namespace diagnostics |
| 79 | 80 |
| 80 #endif // CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_METRICS_H_ | 81 #endif // CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_METRICS_H_ |
| OLD | NEW |