Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: chrome/browser/chrome_browser_application_mac_unittest.mm

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | chrome/browser/chrome_browser_main_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698