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

Issue 2671273003: Get rid of more va_arg methods in favor of std::vector<> arguments. Much simpler and more readable … (Closed)

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

Description

Get rid of more va_arg methods in favor of std::vector<> arguments. Much simpler and more readable method implementations as a result. Merge internal change: 146383132 R=rch@chromium.org BUG=

Patch Set 1 #

Patch Set 2 : fix failed tests #

Total comments: 1

Patch Set 3 : address Ryan's comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -110 lines) Patch
M net/quic/core/crypto/quic_crypto_server_config_test.cc View 1 2 3 chunks +63 lines, -70 lines 0 comments Download
M net/quic/test_tools/quic_crypto_server_config_peer.h View 1 2 1 chunk +10 lines, -10 lines 0 comments Download
M net/quic/test_tools/quic_crypto_server_config_peer.cc View 1 chunk +5 lines, -30 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (11 generated)
Fan Yang
3 years, 10 months ago (2017-02-06 21:31:59 UTC) #1
Ryan Hamilton
Any idea why the tests are failing on some platforms?
3 years, 10 months ago (2017-02-06 23:14:08 UTC) #6
Fan Yang
On 2017/02/06 23:14:08, Ryan Hamilton wrote: > Any idea why the tests are failing on ...
3 years, 10 months ago (2017-02-07 14:41:53 UTC) #9
Ryan Hamilton
Bummer! Thanks for fixing. LGTM https://codereview.chromium.org/2671273003/diff/20001/net/quic/core/crypto/quic_crypto_server_config_test.cc File net/quic/core/crypto/quic_crypto_server_config_test.cc (right): https://codereview.chromium.org/2671273003/diff/20001/net/quic/core/crypto/quic_crypto_server_config_test.cc#newcode357 net/quic/core/crypto/quic_crypto_server_config_test.cc:357: test_peer_.CheckConfigs(empty_configs); Your call, but ...
3 years, 10 months ago (2017-02-07 14:57:26 UTC) #10
Fan Yang
3 years, 10 months ago (2017-02-07 15:17:55 UTC) #13
On 2017/02/07 14:57:26, Ryan Hamilton wrote:
> Bummer! Thanks for fixing.
> 
> LGTM
> 
>
https://codereview.chromium.org/2671273003/diff/20001/net/quic/core/crypto/qu...
> File net/quic/core/crypto/quic_crypto_server_config_test.cc (right):
> 
>
https://codereview.chromium.org/2671273003/diff/20001/net/quic/core/crypto/qu...
> net/quic/core/crypto/quic_crypto_server_config_test.cc:357:
> test_peer_.CheckConfigs(empty_configs);
> Your call, but you could also do:
> 
> test_peer_.CheckConfigs(std::vector<std::pair<string, bool>>());

Done. Thank you, Ryan!

Powered by Google App Engine
This is Rietveld 408576698