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

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

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 <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
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
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | chrome/browser/chrome_browser_field_trials.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698