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

Issue 2149973003: Extracts CT DNS test utilities into a standalone class (Closed)

Created:
4 years, 5 months ago by Rob Percival
Modified:
4 years, 5 months ago
CC:
chromium-reviews, certificate-transparency-chrome_googlegroups.com, Eran Messeri
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extracts CT DNS test utilities into a standalone class This will allow them to be re-used in tests for classes that use LogDnsClient. BUG=612439 Committed: https://crrev.com/6e7096f3a76b5da380dc7af628b95f768948a6b7 Cr-Commit-Position: refs/heads/master@{#407463}

Patch Set 1 #

Patch Set 2 : Swap forward declaration for #include #

Patch Set 3 : Rebase #

Total comments: 19

Patch Set 4 : Merge test_support with unittest build rule #

Patch Set 5 : Renames "detail" namespace to "internal" #

Patch Set 6 : Adds helper for emplacing MockSocketData #

Patch Set 7 : Documents magic numbers in DNS writers #

Patch Set 8 : Rebase and integrate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+505 lines, -325 lines) Patch
M components/certificate_transparency.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/certificate_transparency/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M components/certificate_transparency/log_dns_client.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M components/certificate_transparency/log_dns_client_unittest.cc View 1 2 3 4 5 6 7 28 chunks +68 lines, -322 lines 0 comments Download
A components/certificate_transparency/mock_log_dns_traffic.h View 1 2 3 4 5 6 7 1 chunk +162 lines, -0 lines 0 comments Download
A components/certificate_transparency/mock_log_dns_traffic.cc View 1 2 3 4 5 6 7 1 chunk +270 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (25 generated)
Rob Percival
PTAL
4 years, 5 months ago (2016-07-14 21:15:16 UTC) #4
Rob Percival
Hi Julia, mind taking a look at this? Following Matt Menke's advice, I implemented tests ...
4 years, 5 months ago (2016-07-18 16:37:46 UTC) #11
Julia Tuttle
lgtm!
4 years, 5 months ago (2016-07-18 17:24:31 UTC) #14
Eran Messeri
lgtm with some minor comments. https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/BUILD.gn File components/certificate_transparency/BUILD.gn (right): https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/BUILD.gn#newcode33 components/certificate_transparency/BUILD.gn:33: source_set("test_support") { I suggest ...
4 years, 5 months ago (2016-07-21 14:47:02 UTC) #17
Rob Percival
https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/BUILD.gn File components/certificate_transparency/BUILD.gn (right): https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/BUILD.gn#newcode33 components/certificate_transparency/BUILD.gn:33: source_set("test_support") { On 2016/07/21 14:47:02, Eran Messeri wrote: > ...
4 years, 5 months ago (2016-07-21 15:27:19 UTC) #20
Eran Messeri
https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/mock_log_dns_traffic.h File components/certificate_transparency/mock_log_dns_traffic.h (right): https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/mock_log_dns_traffic.h#newcode58 components/certificate_transparency/mock_log_dns_traffic.h:58: net::MockRead expected_reads_[2]; On 2016/07/21 15:27:19, Rob Percival wrote: > ...
4 years, 5 months ago (2016-07-21 16:49:21 UTC) #21
Rob Percival
https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/mock_log_dns_traffic.cc File components/certificate_transparency/mock_log_dns_traffic.cc (right): https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/mock_log_dns_traffic.cc#newcode34 components/certificate_transparency/mock_log_dns_traffic.cc:34: const size_t query_section_size = encoded_qname.size() + 4; On 2016/07/21 ...
4 years, 5 months ago (2016-07-21 17:32:21 UTC) #22
Eran Messeri
still lgtm https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/mock_log_dns_traffic.cc File components/certificate_transparency/mock_log_dns_traffic.cc (right): https://codereview.chromium.org/2149973003/diff/60001/components/certificate_transparency/mock_log_dns_traffic.cc#newcode34 components/certificate_transparency/mock_log_dns_traffic.cc:34: const size_t query_section_size = encoded_qname.size() + 4; ...
4 years, 5 months ago (2016-07-22 15:55:48 UTC) #25
Rob Percival
PTAL - non-trivial rebase performed.
4 years, 5 months ago (2016-07-22 17:53:40 UTC) #27
Julia Tuttle
lgtm On Fri, Jul 22, 2016 at 1:53 PM <robpercival@chromium.org> wrote: > PTAL - non-trivial ...
4 years, 5 months ago (2016-07-22 18:23:38 UTC) #28
Julia Tuttle
lgtm
4 years, 5 months ago (2016-07-22 18:25:43 UTC) #29
Eran Messeri
still lgtm
4 years, 5 months ago (2016-07-25 13:28:36 UTC) #34
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/2149973003/180001
4 years, 5 months ago (2016-07-25 13:30:39 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years, 5 months ago (2016-07-25 13:34:18 UTC) #38
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 13:35:59 UTC) #40
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/6e7096f3a76b5da380dc7af628b95f768948a6b7
Cr-Commit-Position: refs/heads/master@{#407463}

Powered by Google App Engine
This is Rietveld 408576698