3 years, 6 months ago
(2017-06-06 20:36:33 UTC)
#2
Here are Public-Key-Pinning tests. PTAL.
lilyhoughton
On 2017/06/06 20:36:33, kapishnikov wrote: > Here are Public-Key-Pinning tests. PTAL. This includes/supercedes the CL ...
3 years, 6 months ago
(2017-06-08 16:34:43 UTC)
#3
On 2017/06/06 20:36:33, kapishnikov wrote:
> Here are Public-Key-Pinning tests. PTAL.
This includes/supercedes the CL I made for PKP functionality at all, right?
kapishnikov
On 2017/06/08 16:34:43, lilyhoughton wrote: > On 2017/06/06 20:36:33, kapishnikov wrote: > > Here are ...
3 years, 6 months ago
(2017-06-08 17:04:58 UTC)
#4
On 2017/06/08 16:34:43, lilyhoughton wrote:
> On 2017/06/06 20:36:33, kapishnikov wrote:
> > Here are Public-Key-Pinning tests. PTAL.
>
> This includes/supercedes the CL I made for PKP functionality at all, right?
Yes, this CL includes your CL with some slight modifications.
lilyhoughton
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/Cronet.h#newcode76 components/cronet/ios/Cronet.h:76: // <p> Can the html be replaced with something ...
3 years, 6 months ago
(2017-06-09 16:51:57 UTC)
#5
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/Cronet.h#newcode76 components/cronet/ios/Cronet.h:76: // <p> On 2017/06/09 16:51:57, lilyhoughton wrote: > Can ...
3 years, 6 months ago
(2017-06-09 21:27:02 UTC)
#7
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/C...
File components/cronet/ios/Cronet.h (right):
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/C...
components/cronet/ios/Cronet.h:76: // <p>
On 2017/06/09 16:51:57, lilyhoughton wrote:
> Can the html be replaced with something more like markdown? Whatever the
> effects on doc formatting, it makes the source code itself slightly less
> readable, I think.
Done.
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/C...
components/cronet/ios/Cronet.h:97: // @param hostName name of the host to which
the public keys should be pinned. A
On 2017/06/09 16:51:57, lilyhoughton wrote:
> We also don't have @params for any of the other functions - should we?
I think we should.
The correct way of documenting a method is actually looks like this:
/**
<#Description#>
@param host <#host description#>
@param pinHashes <#pinHashes description#>
@param includeSubdomains <#includeSubdomains description#>
@param expirationDate <#expirationDate description#>
*/
It is also an acceptable documentation style according to the google style
guide.
Using three slashes is also possible but it usually used for a single line
documentation.
/// <#Description#>
///
/// @param host <#host description#>
/// @param pinHashes <#pinHashes description#>
/// @param includeSubdomains <#includeSubdomains description#>
/// @param expirationDate <#expirationDate description#>
Double slashes that we currently use are not considered documentation comments.
If a method has a return value, it should be documented like this:
/**
<#Description#>
@param fileName <#fileName description#>
@param logBytes <#logBytes description#>
@return <#return value description#>
*/
+ (BOOL)startNetLogToFile:(NSString*)fileName logBytes:(BOOL)logBytes;
In order to check if a method is documented correctly, you can alt+click on it.
Maybe we should revisit the documentation of other methods in a separate CL.
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/C...
components/cronet/ios/Cronet.h:110: // subdomains of
{@code hostName}.
On 2017/06/09 16:51:57, lilyhoughton wrote:
> is {@code hostName} different from |hostName|?
This is the result of copy-paste. Fixed.
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/c...
File components/cronet/ios/cronet_environment.h (right):
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/c...
components/cronet/ios/cronet_environment.h:108: void
add_public_key_pins(std::unique_ptr<URLRequestContextConfig::Pkp> pkp) {
On 2017/06/09 16:51:57, lilyhoughton wrote:
> does not seem to be used anywhere currently
Removed.
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/t...
File components/cronet/ios/test/BUILD.gn (right):
https://codereview.chromium.org/2928653002/diff/60001/components/cronet/ios/t...
components/cronet/ios/test/BUILD.gn:37: configs += [
"//build/config/compiler:enable_arc" ]
On 2017/06/09 16:51:57, lilyhoughton wrote:
> where does this come from?
This line enables automatic reference counting.
https://codereview.chromium.org/2928653002/diff/80001/components/cronet/ios/t...
File components/cronet/ios/test/cronet_pkp_test.mm (right):
https://codereview.chromium.org/2928653002/diff/80001/components/cronet/ios/t...
components/cronet/ios/test/cronet_pkp_test.mm:65: void
sendRequestAndAssertSuccess(NSURL* url) {
On 2017/06/09 17:07:52, lilyhoughton wrote:
> nit: I don't think these are much clearer than using
sendRequestAndAssertResult
> directly.
Done.
https://codereview.chromium.org/2928653002/diff/80001/components/cronet/ios/t...
components/cronet/ios/test/cronet_pkp_test.mm:82: if (expected_success) {
On 2017/06/09 17:07:51, lilyhoughton wrote:
> nit: why not just something like |ASSERT_EQ(IsResponseSuccessful(),
> expected_success)|?
It doesn't show an error message if I change it to ASSERT_EQ. Note, that
IsResponseSuccessful() doesn't return boolean but testing::AssertionResult to
provide an error message.
https://codereview.chromium.org/2928653002/diff/80001/components/cronet/ios/t...
components/cronet/ios/test/cronet_pkp_test.mm:133:
ASSERT_NO_FATAL_FAILURE(sendRequestAndAssertError(request_url_));
On 2017/06/09 17:07:51, lilyhoughton wrote:
> Is it possible to make the test more robust with respect to ensuring that this
> fails with a mismatching pin error (as opposed to any other kind of error)?
Unfortunately because of http://crbug.com/548378 we cannot. QUIC returns generic
ERR_QUIC_PROTOCOL_ERROR instead of ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN.
mef
https://codereview.chromium.org/2928653002/diff/100001/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2928653002/diff/100001/components/cronet/ios/Cronet.h#newcode76 components/cronet/ios/Cronet.h:76: /// Pins a set of public keys for a ...
3 years, 6 months ago
(2017-06-12 22:25:24 UTC)
#8
https://codereview.chromium.org/2928653002/diff/100001/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2928653002/diff/100001/components/cronet/ios/Cronet.h#newcode76 components/cronet/ios/Cronet.h:76: /// Pins a set of public keys for a ...
3 years, 6 months ago
(2017-06-16 20:11:05 UTC)
#9
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/467664)
3 years, 6 months ago
(2017-06-19 19:43:07 UTC)
#18
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/467735)
3 years, 6 months ago
(2017-06-19 20:25:28 UTC)
#23
CQ is committing da patch. Bot data: {"patchset_id": 160001, "attempt_start_ts": 1497905180783490, "parent_rev": "5512d48f978312c353d8a7b72fa77b594f4470ee", "commit_rev": "eac2ab04ef175b2225a961a55108b20254f36a69"}
3 years, 6 months ago
(2017-06-19 22:20:31 UTC)
#27
CQ is committing da patch.
Bot data: {"patchset_id": 160001, "attempt_start_ts": 1497905180783490,
"parent_rev": "5512d48f978312c353d8a7b72fa77b594f4470ee", "commit_rev":
"eac2ab04ef175b2225a961a55108b20254f36a69"}
commit-bot: I haz the power
Description was changed from ========== [Cronet-iOS] Public-Key-Pinning Tests 1. Added PKP tests 2. Introduced CronetTestBase ...
3 years, 6 months ago
(2017-06-19 22:20:44 UTC)
#28
Message was sent while issue was closed.
Description was changed from
==========
[Cronet-iOS] Public-Key-Pinning Tests
1. Added PKP tests
2. Introduced CronetTestBase class that chares common code used in
cronet HTTP & PKP tests.
3. Enabled ARC for Cronet tests.
BUG=670689
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
patch from issue 2895123003 at patchset 1 (http://crrev.com/2895123003#ps1)
==========
to
==========
[Cronet-iOS] Public-Key-Pinning Tests
1. Added PKP tests
2. Introduced CronetTestBase class that chares common code used in
cronet HTTP & PKP tests.
3. Enabled ARC for Cronet tests.
BUG=670689
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
patch from issue 2895123003 at patchset 1 (http://crrev.com/2895123003#ps1)
Review-Url: https://codereview.chromium.org/2928653002
Cr-Commit-Position: refs/heads/master@{#480600}
Committed:
https://chromium.googlesource.com/chromium/src/+/eac2ab04ef175b2225a961a55108...
==========
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/eac2ab04ef175b2225a961a55108b20254f36a69
3 years, 6 months ago
(2017-06-19 22:20:45 UTC)
#29
Issue 2928653002: [Cronet-iOS] Public-Key-Pinning Tests
(Closed)
Created 3 years, 6 months ago by kapishnikov
Modified 3 years, 6 months ago
Reviewers: lilyhoughton, mef, davidben
Base URL:
Comments: 63