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 #include "chrome/browser/diagnostics/diagnostics_metrics.h" | 5 #include "chrome/browser/diagnostics/diagnostics_metrics.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "chrome/browser/diagnostics/diagnostics_test.h" | 11 #include "chrome/browser/diagnostics/diagnostics_test.h" |
12 | 12 |
13 namespace diagnostics { | 13 namespace diagnostics { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // A struct to hold information about the tests. | 17 // A struct to hold information about the tests. |
18 struct TestNameInfo { | 18 struct TestNameInfo { |
19 // Should only contain characters [A-Za-z0-9] (no spaces). | 19 // Should only contain characters [A-Za-z0-9] (no spaces). |
20 const char* name; | 20 const char* name; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 switch (id) { | 123 switch (id) { |
124 TEST_CASES(name); // See above | 124 TEST_CASES(name); // See above |
125 default: | 125 default: |
126 NOTREACHED() << "Unhandled UMA Metric type" << id; | 126 NOTREACHED() << "Unhandled UMA Metric type" << id; |
127 } | 127 } |
128 } | 128 } |
129 #undef TEST_CASE | 129 #undef TEST_CASE |
130 #undef TEST_CASES | 130 #undef TEST_CASES |
131 | 131 |
132 } // namespace diagnostics | 132 } // namespace diagnostics |
OLD | NEW |