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

Issue 380003002: Improve testing for SDCH. (Closed)

Created:
6 years, 5 months ago by Randy Smith (Not in Mondays)
Modified:
6 years, 4 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Improve testing for SDCH. Added some end-to-end browser tests, and added a bit of extra checking for the filter. The extra files for encoding dictionaries from sdch/open-vcdiff were added so that the tests could create an SDCH dictionary when run. IMO, this is more flexible for future tests and clearer to read and maintain than just hard-coding a dictionary inline in the tests. BUG=None R=mef@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290638

Patch Set 1 #

Total comments: 6

Patch Set 2 : Results of self-review. #

Total comments: 36

Patch Set 3 : Incorporate review comments. #

Patch Set 4 : Incorporated all comments. #

Patch Set 5 : Incorporated all comments, shifted some testing to unit tests. #

Patch Set 6 : Fixed braino: Added SDHC enable to the tests that need it. #

Total comments: 97

Patch Set 7 : Next round of comments incorporated. #

Total comments: 4

Patch Set 8 : Incorporated comments. #

Patch Set 9 : Sync'd to r288030. #

Total comments: 8

Patch Set 10 : Incorporated comments. #

Patch Set 11 : sync'd to r288872 #

Patch Set 12 : Fix silly compile errors. #

Patch Set 13 : Change SdchDictionaryFetcher constructor to take a scoped_refptr<>. #

Patch Set 14 : Sync'd to r290233. #

Total comments: 3

Patch Set 15 : Fixed Isolation test for ChromeOS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+774 lines, -38 lines) Patch
M chrome/browser/net/DEPS View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/net/sdch_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +617 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -9 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +10 lines, -9 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M net/base/sdch_dictionary_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/sdch_dictionary_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M net/base/sdch_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -1 line 0 comments Download
M net/base/sdch_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +9 lines, -16 lines 0 comments Download
M net/filter/mock_filter_context.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M net/filter/mock_filter_context.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M net/filter/sdch_filter_unittest.cc View 1 2 3 4 5 6 2 chunks +26 lines, -0 lines 0 comments Download
M net/http/http_transaction_test_util.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_storage.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_storage.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job_unittest.cc View 1 2 3 4 5 6 7 2 chunks +49 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download
M sdch/sdch.gyp View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Randy Smith (Not in Mondays)
Misha: Would you be willing to be primary reviewer on this? Jochen: Would you take ...
6 years, 5 months ago (2014-07-10 16:26:32 UTC) #1
mef
I'll be happy to review although I should admit that I know preciously little about ...
6 years, 5 months ago (2014-07-10 16:31:42 UTC) #2
mef
I gtg, so I haven't gotten to the meat of tests, but I'm wondering if ...
6 years, 5 months ago (2014-07-10 17:08:18 UTC) #3
Randy Smith (Not in Mondays)
[Responding to this before the comments, as the resolution affects whether it's worth putting time ...
6 years, 5 months ago (2014-07-10 17:57:21 UTC) #4
Randy Smith (Not in Mondays)
On 2014/07/10 17:57:21, rdsmith wrote: > [Responding to this before the comments, as the resolution ...
6 years, 5 months ago (2014-07-10 17:57:56 UTC) #5
jochen (gone - plz use gerrit)
https://codereview.chromium.org/380003002/diff/20001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/380003002/diff/20001/chrome/browser/DEPS#newcode87 chrome/browser/DEPS:87: "+sdch/open-vcdiff", # Just for tests. should be in chrome/browser/net/DEPS, ...
6 years, 5 months ago (2014-07-11 09:30:08 UTC) #6
mef
Randy, thanks for the explanation, I think it makes sense. https://codereview.chromium.org/380003002/diff/20001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc (right): https://codereview.chromium.org/380003002/diff/20001/chrome/browser/net/sdch_browsertest.cc#newcode578 ...
6 years, 5 months ago (2014-07-11 14:34:36 UTC) #7
Randy Smith (Not in Mondays)
All comments incorporated, and several tests eliminated or moved to unit tests. Jochen, Misha: WDYT? ...
6 years, 5 months ago (2014-07-21 19:26:47 UTC) #8
jochen (gone - plz use gerrit)
deps change and gypi change lgtm
6 years, 5 months ago (2014-07-23 09:13:15 UTC) #9
mef
Looks pretty good, just a bunch of nits. https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc (right): https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc#newcode93 chrome/browser/net/sdch_browsertest.cc:93: // ...
6 years, 5 months ago (2014-07-23 18:34:30 UTC) #10
Randy Smith (Not in Mondays)
Misha, Jim: PTAL? https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc (right): https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc#newcode93 chrome/browser/net/sdch_browsertest.cc:93: // Scanns in a case-insensitive way ...
6 years, 4 months ago (2014-07-29 23:44:22 UTC) #11
mef
lgtm https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc (right): https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc#newcode180 chrome/browser/net/sdch_browsertest.cc:180: // Scan comma separated list of encodings for ...
6 years, 4 months ago (2014-07-30 17:14:58 UTC) #12
jar (doing other things)
... just a pile of nits I think... https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc (right): https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc#newcode102 chrome/browser/net/sdch_browsertest.cc:102: nit: ...
6 years, 4 months ago (2014-07-31 03:24:34 UTC) #13
Randy Smith (Not in Mondays)
Thanks, Misha! Jim: Thank you for the comments, and I'll go through them, but because ...
6 years, 4 months ago (2014-07-31 14:41:54 UTC) #14
jar (doing other things)
You might also indicate why you chose to (or needed to) build the other files ...
6 years, 4 months ago (2014-07-31 23:19:23 UTC) #15
Randy Smith (Not in Mondays)
All comments incorporated. Jim: I've updated the CL description to try and answer why I ...
6 years, 4 months ago (2014-08-11 20:33:25 UTC) #16
jar (doing other things)
Comments... nits... and then LGTM https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc (right): https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc#newcode373 chrome/browser/net/sdch_browsertest.cc:373: run_loop.Run(); On 2014/08/11 20:33:25, ...
6 years, 4 months ago (2014-08-13 01:28:59 UTC) #17
Randy Smith (Not in Mondays)
https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc (right): https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc#newcode373 chrome/browser/net/sdch_browsertest.cc:373: run_loop.Run(); On 2014/08/13 01:28:58, jar wrote: > On 2014/08/11 ...
6 years, 4 months ago (2014-08-13 02:05:26 UTC) #18
jar (doing other things)
still LGTM https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc (right): https://codereview.chromium.org/380003002/diff/100001/chrome/browser/net/sdch_browsertest.cc#newcode373 chrome/browser/net/sdch_browsertest.cc:373: run_loop.Run(); Independent of the performance... I'm OK ...
6 years, 4 months ago (2014-08-14 22:33:25 UTC) #19
Randy Smith (Not in Mondays)
Thanks! https://codereview.chromium.org/380003002/diff/160001/net/base/sdch_dictionary_fetcher.h File net/base/sdch_dictionary_fetcher.h (right): https://codereview.chromium.org/380003002/diff/160001/net/base/sdch_dictionary_fetcher.h#newcode35 net/base/sdch_dictionary_fetcher.h:35: // SdchDictionaryFetcher takes a reference to |*context|. On ...
6 years, 4 months ago (2014-08-18 19:11:06 UTC) #20
Randy Smith (Not in Mondays)
Joao: You're the person who last touched the line on which I'm getting a CHECK() ...
6 years, 4 months ago (2014-08-18 23:32:04 UTC) #21
Joao da Silva
Hi Randy, see inline for an explanation & a quick fix :-) https://codereview.chromium.org/380003002/diff/260001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc ...
6 years, 4 months ago (2014-08-19 08:24:48 UTC) #22
Randy Smith (Not in Mondays)
https://codereview.chromium.org/380003002/diff/260001/chrome/browser/net/sdch_browsertest.cc File chrome/browser/net/sdch_browsertest.cc (right): https://codereview.chromium.org/380003002/diff/260001/chrome/browser/net/sdch_browsertest.cc#newcode594 chrome/browser/net/sdch_browsertest.cc:594: second_browser()->profile()->GetRequestContext(), &sdch_encoding_used)); On 2014/08/19 08:24:47, Joao da Silva wrote: ...
6 years, 4 months ago (2014-08-19 16:21:42 UTC) #23
Randy Smith (Not in Mondays)
The CQ bit was checked by rdsmith@chromium.org
6 years, 4 months ago (2014-08-19 19:16:42 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/380003002/280001
6 years, 4 months ago (2014-08-19 19:17:23 UTC) #25
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 19:56:29 UTC) #26
Message was sent while issue was closed.
Committed patchset #15 (280001) as 290638

Powered by Google App Engine
This is Rietveld 408576698