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

Unified Diff: content/child/site_isolation_stats_gatherer_browsertest.cc

Issue 1515703005: WebRequest API: add more resource types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace == with && 2x Created 5 years 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 | « content/child/site_isolation_stats_gatherer.cc ('k') | content/child/web_url_request_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/site_isolation_stats_gatherer_browsertest.cc
diff --git a/content/child/site_isolation_stats_gatherer_browsertest.cc b/content/child/site_isolation_stats_gatherer_browsertest.cc
index 68ccf31cc2283a57cea1b4f13d14864b1bd47e8d..d38d0fce3ec61a2d874fe33581e77ce602f34ec7 100644
--- a/content/child/site_isolation_stats_gatherer_browsertest.cc
+++ b/content/child/site_isolation_stats_gatherer_browsertest.cc
@@ -81,7 +81,7 @@ class SiteIsolationStatsGathererBrowserTest : public ContentBrowserTest {
std::string base = "SiteIsolation.XSD." + bucket;
if (should_be_blocked) {
expected_metrics[base + ".Blocked"] = 1;
- expected_metrics[base + ".Blocked.RenderableStatusCode"] = 1;
+ expected_metrics[base + ".Blocked.RenderableStatusCode2"] = 1;
} else {
expected_metrics[base + ".NotBlocked"] = 1;
if (base::MatchPattern(resource_name, "*js.*")) {
@@ -102,9 +102,9 @@ class SiteIsolationStatsGathererBrowserTest : public ContentBrowserTest {
if (should_be_blocked) {
static_assert(13 == RESOURCE_TYPE_XHR, "Histogram enums mustn't change.");
EXPECT_THAT(
- histograms.GetAllSamples(base + ".Blocked.RenderableStatusCode"),
+ histograms.GetAllSamples(base + ".Blocked.RenderableStatusCode2"),
testing::ElementsAre(base::Bucket(RESOURCE_TYPE_XHR, 1)))
- << "The wrong RenderableStatusCode bucket was incremented.";
+ << "The wrong RenderableStatusCode2 bucket was incremented.";
}
}
« no previous file with comments | « content/child/site_isolation_stats_gatherer.cc ('k') | content/child/web_url_request_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698