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

Issue 258473005: Add a unittest for PasswordAutofillAgent (Closed)

Created:
6 years, 8 months ago by vabr (Chromium)
Modified:
6 years, 8 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Add a unittest for PasswordAutofillAgent Currently only contains a test for functionality added in https://codereview.chromium.org/231283003/. Closed, because replaced by https://codereview.chromium.org/257803004/. BUG=347927

Patch Set 1 : Attempt to stub RenderView #

Patch Set 2 : Test with a NULL RenderView #

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -1 line) Patch
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A components/autofill/content/renderer/password_autofill_agent_unittest.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/test_password_autofill_agent.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
vabr (Chromium)
Hi Ilya, Please review the unit test for PasswordAutofillAgent we spoke about. I had some ...
6 years, 8 months ago (2014-04-24 16:06:55 UTC) #1
Ilya Sherman
Thanks for investigating this! Based on your results, it sounds like maybe it's just not ...
6 years, 8 months ago (2014-04-25 06:29:42 UTC) #2
vabr (Chromium)
6 years, 8 months ago (2014-04-25 11:05:53 UTC) #3
On 2014/04/25 06:29:42, Ilya Sherman wrote:
> Thanks for investigating this!  Based on your results, it sounds like maybe
it's
> just not worth writing a unit test for this class, and instead we should stick
> with browser tests.  I'd rather have production code not make sacrifices for
the
> sake of test-specific conditions, and instead just have slightly more
> heavy-weight tests.

Fair enough, thanks Ilya!
I filed a new CL for the browser test:
https://codereview.chromium.org/257803004/, and added you as a reviewer.
I'll close this one, to keep it as a trace of the decision to not make it a unit
test.

Cheers,
Vaclav

Powered by Google App Engine
This is Rietveld 408576698