ash_unittests --mash --gtest_filter=LoginMetricsRecorder*
[ RUN ] LoginMetricsRecorderTest.UnlockAttempts
../../ash/metrics/login_metrics_recorder_unittest.cc:119: Failure
Mock function called more times than expected - returning directly.
Function call: AuthenticateUser_(@0x7ffcff45b980 {id: , email: user0@domain.com, type: 0}, @0x7ffcff45b9f0 "85a4720220f6c91cf103cd2a11423c9d", @0x7ffcff45b9c0 48-byte object <00-00 00-00 00-00 00-00 20-B6 22-68 02-96 AF-FA 5C-D1 B3-D1 2D-92 E6-2D 1D-00 00-00 00-00 00-00 52-E8 4C-FB 06-00 00-00 00-00 00-00 00-00 00-00>, false, @0x7ffcff45b978 8-byte object <00-3A 4B-E2 2F-24 00-00>)
Expected: to be called once
Actual: called twice - over-saturated and active
../../base/test/histogram_tester.cc:171: Failure
Expected equality of these values:
expected_count
Which is: 1
actual_count
Which is: 0
Histogram "Ash.Login.Lock.AuthMethod.Used.ClamShellMode" does not have the right number of samples (1) in the expected bucket (1). It has (0).
../../ash/metrics/login_metrics_recorder_unittest.cc:145: Failure
Actual function call count doesn't match EXPECT_CALL(*client, AuthenticateUser_(primary_user, testing::_, testing::_, true, testing::_))...
Expected: to be called once
Actual: never called - unsatisfied and active
[ FAILED ] LoginMetricsRecorderTest.UnlockAttempts (331 ms)
Maybe TabletModeController is returning the wrong state, so it never records clamshell mode.
Comment 1 by jdufault@chromium.org
, Feb 21 2018