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

Unified Diff: chrome/browser/memory/memory_kills_monitor_unittest.cc

Issue 2721553004: Remove auto raw pointer deduction from non-linux specific code. (Closed)
Patch Set: rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/mac/exception_processor.mm ('k') | chrome/browser/password_manager/password_store_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory/memory_kills_monitor_unittest.cc
diff --git a/chrome/browser/memory/memory_kills_monitor_unittest.cc b/chrome/browser/memory/memory_kills_monitor_unittest.cc
index 339030ed58fb3ef01dcbfbbb5f45f5cd1518d33d..6d32a6947c0261f9758ff54d9393951f67712b11 100644
--- a/chrome/browser/memory/memory_kills_monitor_unittest.cc
+++ b/chrome/browser/memory/memory_kills_monitor_unittest.cc
@@ -21,7 +21,7 @@ TEST_F(MemoryKillsMonitorTest, LogLowMemoryKill) {
MemoryKillsMonitor::LogLowMemoryKill("APP", 100);
MemoryKillsMonitor::LogLowMemoryKill("TAB", 10000);
- auto histogram_count =
+ auto* histogram_count =
base::StatisticsRecorder::FindHistogram("Arc.LowMemoryKiller.Count");
ASSERT_TRUE(histogram_count);
auto count_samples = histogram_count->SnapshotSamples();
@@ -30,7 +30,7 @@ TEST_F(MemoryKillsMonitorTest, LogLowMemoryKill) {
EXPECT_EQ(1, count_samples->GetCount(2));
EXPECT_EQ(1, count_samples->GetCount(3));
- auto histogram_freed_size =
+ auto* histogram_freed_size =
base::StatisticsRecorder::FindHistogram("Arc.LowMemoryKiller.FreedSize");
ASSERT_TRUE(histogram_freed_size);
auto freed_size_samples = histogram_freed_size->SnapshotSamples();
@@ -40,7 +40,7 @@ TEST_F(MemoryKillsMonitorTest, LogLowMemoryKill) {
EXPECT_EQ(2, freed_size_samples->GetCount(100));
EXPECT_EQ(1, freed_size_samples->GetCount(10000));
- auto histogram_time_delta =
+ auto* histogram_time_delta =
base::StatisticsRecorder::FindHistogram("Arc.LowMemoryKiller.TimeDelta");
ASSERT_TRUE(histogram_time_delta);
auto time_delta_samples = histogram_time_delta->SnapshotSamples();
@@ -66,7 +66,7 @@ TEST_F(MemoryKillsMonitorTest, TryMatchOomKillLine) {
MemoryKillsMonitor::TryMatchOomKillLine(sample_lines[i]);
}
- auto histogram_count =
+ auto* histogram_count =
base::StatisticsRecorder::FindHistogram("Arc.OOMKills.Count");
ASSERT_TRUE(histogram_count);
auto count_samples = histogram_count->SnapshotSamples();
@@ -75,7 +75,7 @@ TEST_F(MemoryKillsMonitorTest, TryMatchOomKillLine) {
EXPECT_EQ(1, count_samples->GetCount(2));
EXPECT_EQ(1, count_samples->GetCount(3));
- auto histogram_score =
+ auto* histogram_score =
base::StatisticsRecorder::FindHistogram("Arc.OOMKills.Score");
ASSERT_TRUE(histogram_score);
auto score_samples = histogram_score->SnapshotSamples();
@@ -84,7 +84,7 @@ TEST_F(MemoryKillsMonitorTest, TryMatchOomKillLine) {
EXPECT_EQ(1, score_samples->GetCount(652));
EXPECT_EQ(1, score_samples->GetCount(653));
- auto histogram_time_delta =
+ auto* histogram_time_delta =
base::StatisticsRecorder::FindHistogram("Arc.OOMKills.TimeDelta");
ASSERT_TRUE(histogram_time_delta);
auto time_delta_samples = histogram_time_delta->SnapshotSamples();
« no previous file with comments | « chrome/browser/mac/exception_processor.mm ('k') | chrome/browser/password_manager/password_store_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698