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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 #include <stddef.h> |
6 | 7 |
7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
8 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
9 #include "base/metrics/histogram_samples.h" | 10 #include "base/metrics/histogram_samples.h" |
10 #include "base/metrics/statistics_recorder.h" | 11 #include "base/metrics/statistics_recorder.h" |
11 #import "chrome/browser/chrome_browser_application_mac.h" | 12 #import "chrome/browser/chrome_browser_application_mac.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 using base::HistogramBase; | 15 using base::HistogramBase; |
15 using base::HistogramSamples; | 16 using base::HistogramSamples; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 EXPECT_EQ(2, samples->GetCount(3)); | 83 EXPECT_EQ(2, samples->GetCount(3)); |
83 | 84 |
84 // The unknown exceptions should end up in the overflow bucket. | 85 // The unknown exceptions should end up in the overflow bucket. |
85 EXPECT_TRUE(histograms[0]->HasConstructionArguments(1, | 86 EXPECT_TRUE(histograms[0]->HasConstructionArguments(1, |
86 kUnknownNSException, | 87 kUnknownNSException, |
87 kUnknownNSException + 1)); | 88 kUnknownNSException + 1)); |
88 EXPECT_EQ(4, samples->GetCount(kUnknownNSException)); | 89 EXPECT_EQ(4, samples->GetCount(kUnknownNSException)); |
89 } | 90 } |
90 | 91 |
91 } // chrome_browser_application_mac | 92 } // chrome_browser_application_mac |
OLD | NEW |