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

Unified Diff: components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc

Issue 2956703002: Adds Server Previews protocol UMA plus UMA for not accepting previews (Closed)
Patch Set: Fix merge issue for unittest wrt AlwaysOn and PreviewsDecider Created 3 years, 6 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 | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc
diff --git a/components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc b/components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc
index 5caa2a4365c3764a27243332976446d258f7795a..aaec299877ae84690332ec066c5daf8bf606cf2f 100644
--- a/components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc
+++ b/components/data_reduction_proxy/content/browser/content_lofi_decider_unittest.cc
@@ -771,11 +771,11 @@ TEST_F(ContentLoFiDeciderTest, VideoDirectiveDoesNotOverride) {
std::unique_ptr<net::URLRequest> request =
CreateRequestByType(content::RESOURCE_TYPE_MEDIA, false, true);
net::HttpRequestHeaders headers;
- headers.SetHeader(chrome_proxy_accept_transform_header(), "foo");
+ headers.SetHeader(chrome_proxy_accept_transform_header(), "empty-image");
NotifyBeforeSendHeaders(&headers, request.get(), true);
std::string header_value;
headers.GetHeader(chrome_proxy_accept_transform_header(), &header_value);
- EXPECT_EQ("foo", header_value);
+ EXPECT_EQ("empty-image", header_value);
}
TEST_F(ContentLoFiDeciderTest, IsSlowPagePreviewRequested) {
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698