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

Unified Diff: chrome/browser/metrics/metrics_memory_details_browsertest.cc

Issue 2162783002: Add Memory.{Browser,Renderer}.Large2 metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 4 years, 5 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/metrics/metrics_memory_details.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_memory_details_browsertest.cc
diff --git a/chrome/browser/metrics/metrics_memory_details_browsertest.cc b/chrome/browser/metrics/metrics_memory_details_browsertest.cc
index 7a2eeaf706c29e167c97159468e19c745a85bd60..7f18a7c891ac6a57b5a3b763981f06124c6ffa85 100644
--- a/chrome/browser/metrics/metrics_memory_details_browsertest.cc
+++ b/chrome/browser/metrics/metrics_memory_details_browsertest.cc
@@ -52,10 +52,11 @@ IN_PROC_BROWSER_TEST_F(MetricsMemoryDetailsBrowserTest, TestMemoryDetails) {
scoped_refptr<TestMemoryDetails> details(new TestMemoryDetails);
details->StartFetchAndWait();
- // Memory.Browser histogram should have a single non-0 sample recorded.
- histogram_tester.ExpectTotalCount("Memory.Browser", 1);
+ // Memory.Browser.Large2 histogram should have a single non-0 sample recorded.
+ histogram_tester.ExpectTotalCount("Memory.Browser.Large2", 1);
std::unique_ptr<base::HistogramSamples> samples(
- histogram_tester.GetHistogramSamplesSinceCreation("Memory.Browser"));
+ histogram_tester.GetHistogramSamplesSinceCreation(
+ "Memory.Browser.Large2"));
ASSERT_TRUE(samples);
EXPECT_NE(0, samples->sum());
}
« no previous file with comments | « chrome/browser/metrics/metrics_memory_details.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698