| 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 "chrome/browser/chrome_browser_application_mac.h" | 5 #import "chrome/browser/chrome_browser_application_mac.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.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 "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 using base::HistogramBase; | 17 using base::HistogramBase; |
| 18 using base::HistogramSamples; | 18 using base::HistogramSamples; |
| 19 using base::StatisticsRecorder; | 19 using base::StatisticsRecorder; |
| 20 | 20 |
| 21 namespace chrome_browser_application_mac { | 21 namespace chrome_browser_application_mac { |
| 22 | 22 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 EXPECT_EQ(2, samples->GetCount(3)); | 85 EXPECT_EQ(2, samples->GetCount(3)); |
| 86 | 86 |
| 87 // The unknown exceptions should end up in the overflow bucket. | 87 // The unknown exceptions should end up in the overflow bucket. |
| 88 EXPECT_TRUE(histograms[0]->HasConstructionArguments(1, | 88 EXPECT_TRUE(histograms[0]->HasConstructionArguments(1, |
| 89 kUnknownNSException, | 89 kUnknownNSException, |
| 90 kUnknownNSException + 1)); | 90 kUnknownNSException + 1)); |
| 91 EXPECT_EQ(4, samples->GetCount(kUnknownNSException)); | 91 EXPECT_EQ(4, samples->GetCount(kUnknownNSException)); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // chrome_browser_application_mac | 94 } // chrome_browser_application_mac |
| OLD | NEW |