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

Issue 1137563002: Tests for "Save Image As..." when Data Saver is enabled. (Closed)

Created:
5 years, 7 months ago by Not at Google. Contact bengr
Modified:
5 years, 7 months ago
Reviewers:
Avi (use Gerrit), bengr
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Tests for "Save Image As..." when Data Saver is enabled. Verify that request headers specify a passthrough when "Save Image As..." feature is used with Data Saver enabled, and this header is not specified with Data Saver disabled. Override SaveFrameWithHeaders in TestWebContents to keep track of the headers. BUG=467163 Committed: https://crrev.com/6db683ca806cdf9b78deea233d6b45794fc655c1 Cr-Commit-Position: refs/heads/master@{#329900}

Patch Set 1 #

Patch Set 2 : Remove some unused code. #

Patch Set 3 : Setup data reduction proxy classes #

Patch Set 4 : Whitespace #

Total comments: 6

Patch Set 5 : Refactor common setup code. #

Total comments: 12

Patch Set 6 : addressed bengr's comments #

Patch Set 7 : Minor formatting #

Patch Set 8 : Use scoped_ptr. #

Patch Set 9 : Sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -0 lines) Patch
M chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc View 1 2 3 4 5 6 7 4 chunks +89 lines, -0 lines 0 comments Download
M content/public/test/web_contents_tester.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/test/test_web_contents.h View 1 2 3 4 5 6 4 chunks +9 lines, -0 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
Not at Google. Contact bengr
Ben, Can you please take a look at the changes in data reduction code before ...
5 years, 7 months ago (2015-05-07 22:53:10 UTC) #2
Not at Google. Contact bengr
avi: chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc content/public/test/web_contents_tester.h content/test/test_web_contents.cc content/test/test_web_contents.h
5 years, 7 months ago (2015-05-11 20:01:13 UTC) #4
Avi (use Gerrit)
https://codereview.chromium.org/1137563002/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc File chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc (right): https://codereview.chromium.org/1137563002/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc#newcode457 chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc:457: .Build(); Can you abstract some of this duplicate code ...
5 years, 7 months ago (2015-05-11 20:52:29 UTC) #5
Not at Google. Contact bengr
Thanks for the review. PTAL. https://codereview.chromium.org/1137563002/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc File chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc (right): https://codereview.chromium.org/1137563002/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc#newcode457 chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc:457: .Build(); On 2015/05/11 20:52:29, ...
5 years, 7 months ago (2015-05-11 22:43:14 UTC) #6
Avi (use Gerrit)
The code LGTM; get a review by an area expert too.
5 years, 7 months ago (2015-05-12 00:43:33 UTC) #7
Not at Google. Contact bengr
Thanks avi@. Jeremy, can you please take a look?
5 years, 7 months ago (2015-05-12 16:24:27 UTC) #10
Not at Google. Contact bengr
Ben, can you please take a look?
5 years, 7 months ago (2015-05-12 17:40:27 UTC) #12
bengr
https://codereview.chromium.org/1137563002/diff/80001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc File chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc (right): https://codereview.chromium.org/1137563002/diff/80001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc#newcode384 chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc:384: data_reduction_proxy::DataReductionProxyIOData* io_data = No need for this temporary. https://codereview.chromium.org/1137563002/diff/80001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc#newcode390 ...
5 years, 7 months ago (2015-05-13 17:35:48 UTC) #13
Not at Google. Contact bengr
https://codereview.chromium.org/1137563002/diff/80001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc File chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc (right): https://codereview.chromium.org/1137563002/diff/80001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc#newcode384 chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc:384: data_reduction_proxy::DataReductionProxyIOData* io_data = On 2015/05/13 17:35:47, bengr wrote: > ...
5 years, 7 months ago (2015-05-13 20:24:09 UTC) #14
bengr
lgtm
5 years, 7 months ago (2015-05-14 16:11:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137563002/160001
5 years, 7 months ago (2015-05-14 18:34:31 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 7 months ago (2015-05-14 19:40:24 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 19:41:12 UTC) #20
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6db683ca806cdf9b78deea233d6b45794fc655c1
Cr-Commit-Position: refs/heads/master@{#329900}

Powered by Google App Engine
This is Rietveld 408576698