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

Issue 8588011: Split DiskCacheBasedSSLHostInfo unit tests to its own (Closed)

Created:
9 years, 1 month ago by rvargas (doing something else)
Modified:
9 years, 1 month ago
Reviewers:
gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Split DiskCacheBasedSSLHostInfo unit tests to its own file. I'll be adding more unit tests so it's a good time to do this. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111217

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+485 lines, -15960 lines) Patch
A + net/http/disk_cache_based_ssl_host_info_unittest.cc View 1 chunk +1 line, -5180 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 6 chunks +4 lines, -703 lines 0 comments Download
A + net/http/mock_http_cache.h View 1 2 6 chunks +77 lines, -5067 lines 6 comments Download
A + net/http/mock_http_cache.cc View 1 2 chunks +400 lines, -5010 lines 5 comments Download
M net/net.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rvargas (doing something else)
9 years, 1 month ago (2011-11-17 00:09:08 UTC) #1
gavinp
Is this upload OK for this cl? disk_cache_based_ssl_host_info_unittest.cc doesn't exist, yet this CL shows a ...
9 years, 1 month ago (2011-11-18 14:26:22 UTC) #2
gavinp
It looks like all of mock_http_cache.cc, mock_http_cache.h and disk_cache_based_ssl_host_info._unittest.cc are copies fo http_cache_unittest.cc.
9 years, 1 month ago (2011-11-18 14:29:04 UTC) #3
rvargas (doing something else)
On 2011/11/18 14:29:04, gavinp wrote: > It looks like all of mock_http_cache.cc, mock_http_cache.h and > ...
9 years, 1 month ago (2011-11-18 19:12:21 UTC) #4
rvargas (doing something else)
http://codereview.chromium.org/8588011/diff/5002/net/http/mock_http_cache.cc File net/http/mock_http_cache.cc (right): http://codereview.chromium.org/8588011/diff/5002/net/http/mock_http_cache.cc#newcode284 net/http/mock_http_cache.cc:284: void MockDiskEntry::RunCallback(net::OldCompletionCallback* callback, int result) { On 2011/11/18 14:26:22, ...
9 years, 1 month ago (2011-11-18 19:24:58 UTC) #5
gavinp
Thanks for your patience, I just needed to track this big file being split up. ...
9 years, 1 month ago (2011-11-22 18:33:48 UTC) #6
rvargas (doing something else)
http://codereview.chromium.org/8588011/diff/5002/net/http/mock_http_cache.cc File net/http/mock_http_cache.cc (right): http://codereview.chromium.org/8588011/diff/5002/net/http/mock_http_cache.cc#newcode284 net/http/mock_http_cache.cc:284: void MockDiskEntry::RunCallback(net::OldCompletionCallback* callback, int result) { I'm not the ...
9 years, 1 month ago (2011-11-22 18:58:10 UTC) #7
gavinp
http://codereview.chromium.org/8588011/diff/5002/net/http/mock_http_cache.h File net/http/mock_http_cache.h (right): http://codereview.chromium.org/8588011/diff/5002/net/http/mock_http_cache.h#newcode115 net/http/mock_http_cache.h:115: std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE; I remember that thread ...
9 years, 1 month ago (2011-11-22 19:59:29 UTC) #8
gavinp
9 years, 1 month ago (2011-11-22 20:18:29 UTC) #9
LGTM, and I'm writing a followup to chromium-dev to talk about transitivity and
IWYU.

http://codereview.chromium.org/8588011/diff/5002/net/http/mock_http_cache.h
File net/http/mock_http_cache.h (right):

http://codereview.chromium.org/8588011/diff/5002/net/http/mock_http_cache.h#n...
net/http/mock_http_cache.h:115: std::vector<std::pair<std::string, std::string>
>* stats) OVERRIDE;
Annnd... I appear to have missed the point.  I've reflected on this more; since
this is an OVERRIDE, it's compile-time asserted that the ancestor class has the
same method defined, and so just as you don't need to explicitly include your
ancestor's ancestor, you are good here.

My apologies for the tooth-pulling that it seemed like to convince me of this. 
I do not believe that classes used in OVERRIDE methods need tickle an IWYU rule
now.

On 2011/11/22 19:59:29, gavinp wrote:
> I remember that thread well.  But IWYU was specifically spoken about in
> chromium-dev just last week:
>
https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thr...
> 
> The consensus was that we should do it.  I'm going to have to argue for
> consistency over the speedup on platforms that don't have #pragma once system
> libraries.  :(
> 
> On 2011/11/22 18:58:10, rvargas wrote:
> > Looking at this particular case (without delving into what lint should do or
> > not), we are talking about the disk cache interface. There is no way this
file
> > can lose the requirement to include disk_cache.h without any serious
> > repurposing, so I see no value in requiring this file to include things that
> are
> > required for the interface declaration. That is not the most common pattern
in
> > our code.
> > 
> > As for what a compiler can or cannot do, remember that as recently as one
year
> > ago we were measuring the effect of adding pragma once to all the files
given
> > the speedup provided on some platforms
> >
>
(https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thr...).
> > 
> > Of course, I can add the two files if you insist, I just don't agree that
> there
> > is any advantage in doing so (and there is a potential downside given that
we
> > really don't control the compilers used to build net).
>

Powered by Google App Engine
This is Rietveld 408576698