Commit 29ab3ab4 authored by Ioana Pandele's avatar Ioana Pandele Committed by Commit Bot

Ensure that password accessory test doesn't check for the native library

Currently, testSetsViewAdapterOnTabCreation fails because it reaches a
feature check which needs the native library to be loaded. This should
not happen in unit tests, so we explicitly set the feature for test for
all test cases.

Bug: 1060580
Change-Id: I688b49b0df49e7262e186bda321f221b7d62be5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2093444Reviewed-by: default avatarFriedrich [CET] <fhorschig@chromium.org>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749211}
parent 32145c98
......@@ -75,6 +75,7 @@ public class PasswordAccessorySheetControllerTest {
@Before
public void setUp() {
setAutofillFeature(true);
ShadowRecordHistogram.reset();
MockitoAnnotations.initMocks(this);
mocker.mock(RecordHistogramJni.TEST_HOOKS, mMockRecordHistogramNatives);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment