OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/spellchecker/spellcheck_host_metrics.h" | 5 #include "components/spellcheck/browser/spellcheck_host_metrics.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/metrics/histogram_samples.h" | 13 #include "base/metrics/histogram_samples.h" |
14 #include "base/metrics/statistics_recorder.h" | 14 #include "base/metrics/statistics_recorder.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 histogram_tester1.ExpectBucketCount(kMetricName, 0, 1); | 108 histogram_tester1.ExpectBucketCount(kMetricName, 0, 1); |
109 histogram_tester1.ExpectBucketCount(kMetricName, 1, 0); | 109 histogram_tester1.ExpectBucketCount(kMetricName, 1, 0); |
110 | 110 |
111 base::HistogramTester histogram_tester2; | 111 base::HistogramTester histogram_tester2; |
112 | 112 |
113 metrics()->RecordSpellingServiceStats(true); | 113 metrics()->RecordSpellingServiceStats(true); |
114 histogram_tester2.ExpectBucketCount(kMetricName, 0, 0); | 114 histogram_tester2.ExpectBucketCount(kMetricName, 0, 0); |
115 histogram_tester2.ExpectBucketCount(kMetricName, 1, 1); | 115 histogram_tester2.ExpectBucketCount(kMetricName, 1, 1); |
116 } | 116 } |
OLD | NEW |