New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 807876 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Add unit tests to prevent regressions like crbug.com/807856

Project Member Reported by kinaba@chromium.org, Feb 1 2018

Issue description

I mean, the tests that checks the sanity of parameters passed to cryptohome methods from encryption_migration_screen.

I haven't looked into the details yet, but recording the passed arguments FakeCryptohomeClient and checking them in looks doable to me.
https://chromium.googlesource.com/chromium/src/+/master/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler_unittest.cc


Any nicer suggestions are welcomed.
 

Comment 1 by maajid@google.com, Feb 1 2018

Cc: xiy...@chromium.org hidehiko@chromium.org
Components: OS>Systems
+xiyuan@ and +hidehiko@ in case they have any opinions
Owner: kinaba@chromium.org
Status: Assigned (was: Available)
Putting this on my plate for now so that it won't be forgotten (but feel free to take over if anyone got interested.)
Owner: maajid@chromium.org
Grabbing as adding a unit test is pretty easy.

If we think adding other types of tests (integration/e2e etc) are worth it maybe we can split this bug out.
Cc: satorux@chromium.org
Project Member

Comment 6 by bugdroid1@chromium.org, Feb 6 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0127a3dcc32957dc54285c7925bc28144c6d659e

commit 0127a3dcc32957dc54285c7925bc28144c6d659e
Author: Maajid <maajid@chromium.org>
Date: Tue Feb 06 03:39:59 2018

Add unit test checks for authorization request regression.

Bug:  807876 
Test: Confirmed locally that this would have caught the regression.
Change-Id: I13880896420471a8e0d5325d2453306b11f37fe8
Reviewed-on: https://chromium-review.googlesource.com/897289
Reviewed-by: Kazuhiro Inaba <kinaba@chromium.org>
Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Maajid <maajid@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534614}
[modify] https://crrev.com/0127a3dcc32957dc54285c7925bc28144c6d659e/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler_unittest.cc
[modify] https://crrev.com/0127a3dcc32957dc54285c7925bc28144c6d659e/chromeos/dbus/fake_cryptohome_client.cc
[modify] https://crrev.com/0127a3dcc32957dc54285c7925bc28144c6d659e/chromeos/dbus/fake_cryptohome_client.h

Status: Fixed (was: Assigned)
Summary: Add unit tests to prevent regressions like crbug.com/807856 (was: Add tests to prevent regressions like crbug.com/807856)
Marking this as fixed, let's file a new bug if we want to add an autotest or something heavier than a unit test.

Sign in to add a comment