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

Issue 679673002: Reduce runtime of client_cert_resolver_unittest (Closed)

Created:
6 years, 2 months ago by pneubeck (no reviews)
Modified:
6 years, 2 months ago
Reviewers:
Joao da Silva
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Reduce runtime of client_cert_resolver_unittest Enabling the unit tests again on debug. If they still timeout, please revert. Several changes to reduce the runtime: - Ensure that there are no duplicate Shill profile notifications, which triggered multiple policy applications and certificate resolves. - Ensure that each test runs at most one certificate resolve task. - Use other certificates that are faster to load and import. Overall this reduce on my workstation runtime in debug from ~6 seconds to <4 seconds. Also remove the unnecessary TPMTokenLoader initialization. BUG=418369 Committed: https://crrev.com/d0f72112a76c7b3449875478fce65f7d0b4b98e9 Cr-Commit-Position: refs/heads/master@{#301091}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added reference. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -53 lines) Patch
M chromeos/network/client_cert_resolver.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chromeos/network/client_cert_resolver_unittest.cc View 12 chunks +20 lines, -47 lines 0 comments Download
M chromeos/network/network_profile_handler.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chromeos/network/network_profile_handler.cc View 1 2 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
pneubeck (no reviews)
ptal
6 years, 2 months ago (2014-10-24 11:09:01 UTC) #2
Joao da Silva
Looks reasonable, lgtm https://codereview.chromium.org/679673002/diff/1/chromeos/network/client_cert_resolver_unittest.cc File chromeos/network/client_cert_resolver_unittest.cc (left): https://codereview.chromium.org/679673002/diff/1/chromeos/network/client_cert_resolver_unittest.cc#oldcode248 chromeos/network/client_cert_resolver_unittest.cc:248: void CleanupSlotContents() { Are you sure ...
6 years, 2 months ago (2014-10-24 12:01:07 UTC) #3
pneubeck (no reviews)
https://codereview.chromium.org/679673002/diff/1/chromeos/network/client_cert_resolver_unittest.cc File chromeos/network/client_cert_resolver_unittest.cc (left): https://codereview.chromium.org/679673002/diff/1/chromeos/network/client_cert_resolver_unittest.cc#oldcode248 chromeos/network/client_cert_resolver_unittest.cc:248: void CleanupSlotContents() { On 2014/10/24 12:01:06, Joao da Silva ...
6 years, 2 months ago (2014-10-24 12:33:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/679673002/20001
6 years, 2 months ago (2014-10-24 12:35:19 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 2 months ago (2014-10-24 13:30:10 UTC) #7
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 13:30:55 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d0f72112a76c7b3449875478fce65f7d0b4b98e9
Cr-Commit-Position: refs/heads/master@{#301091}

Powered by Google App Engine
This is Rietveld 408576698