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/basictypes.h" | 9 #include "base/macros.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.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). |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 switch (id) { | 119 switch (id) { |
120 TEST_CASES(name); // See above | 120 TEST_CASES(name); // See above |
121 default: | 121 default: |
122 NOTREACHED() << "Unhandled UMA Metric type" << id; | 122 NOTREACHED() << "Unhandled UMA Metric type" << id; |
123 } | 123 } |
124 } | 124 } |
125 #undef TEST_CASE | 125 #undef TEST_CASE |
126 #undef TEST_CASES | 126 #undef TEST_CASES |
127 | 127 |
128 } // namespace diagnostics | 128 } // namespace diagnostics |
OLD | NEW |