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

Issue 2681383002: HttpServerPropertiesManager and tests cleanup (Closed)

Created:
3 years, 10 months ago by xunjieli
Modified:
3 years, 10 months ago
Reviewers:
Zhongyi Shi
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

HttpServerPropertiesManager and tests cleanup This CL cleans up HttpServerPropertiesManager and its unittests: HttpServerPropertiesManager: 1. Cleanup test-only virtual methods in cc and h files. Tests: 1. Re-enable unintentional commented out test code 2. Remove unused fields and methods in test file 3. Rename UpdateCacheWithPrefs test to UpdatePrefsWithCache test because that test is really testing cache -> pref update. 4. Simplify two unit tests: UpdatePrefsWithCache and DoNotPersistExpiredOrBrokenAlternativeService. Review-Url: https://codereview.chromium.org/2681383002 Cr-Commit-Position: refs/heads/master@{#449713} Committed: https://chromium.googlesource.com/chromium/src/+/2b355b10cfd06d3a0e4b5fc563a3c9ee2f4e4d79

Patch Set 1 #

Patch Set 2 : self #

Patch Set 3 : self #

Patch Set 4 : simplify tests #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -95 lines) Patch
M net/http/http_server_properties_manager.h View 1 2 chunks +0 lines, -8 lines 0 comments Download
M net/http/http_server_properties_manager.cc View 1 2 chunks +5 lines, -23 lines 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 1 2 3 17 chunks +41 lines, -64 lines 4 comments Download

Messages

Total messages: 30 (24 generated)
xunjieli
Interestingly, we have some commented out code in the test file. I think it is ...
3 years, 10 months ago (2017-02-09 18:52:54 UTC) #1
Zhongyi Shi
Thanks for cleaning this up, looks good to me, just one question about the test. ...
3 years, 10 months ago (2017-02-10 18:01:38 UTC) #23
xunjieli
https://codereview.chromium.org/2681383002/diff/80001/net/http/http_server_properties_manager_unittest.cc File net/http/http_server_properties_manager_unittest.cc (left): https://codereview.chromium.org/2681383002/diff/80001/net/http/http_server_properties_manager_unittest.cc#oldcode1178 net/http/http_server_properties_manager_unittest.cc:1178: On 2017/02/10 18:01:38, Zhongyi Shi wrote: > Hm, I ...
3 years, 10 months ago (2017-02-10 20:01:21 UTC) #24
Zhongyi Shi
lgtm! Thanks for improving those tests!
3 years, 10 months ago (2017-02-10 20:03:36 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2681383002/80001
3 years, 10 months ago (2017-02-10 20:05:34 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 20:13:35 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2b355b10cfd06d3a0e4b5fc563a3...

Powered by Google App Engine
This is Rietveld 408576698