commit | 6efd09a0eec38c6d96a5f4fb85c5e5e36b322113 | [log] [tgz] |
---|---|---|
author | Eric Schwarzenbach <easchwar@google.com> | Tue Aug 22 10:33:00 2017 -0700 |
committer | Eric Schwarzenbach <easchwar@google.com> | Tue Aug 22 13:40:28 2017 -0700 |
tree | 8c0b169511523b5f2444bfb84bc543f9f4eb5308 | |
parent | 3af8736334fe5747e0487137bbd868c768641b8e [diff] |
Fix AccessPointPreferenceTest and add updateIcon test. Dependency injects the getIcon() functionality in AccessPointPreference to enable mocking the method in robolectric where it normally fails to find the resource. Adds a test to verify that getIcon is called on refresh. Also modifies the constructors to reduce redundancy. Bug: 35854035, 64898200 Test: make -j40 RunSettingsLibRoboTests Change-Id: Iaf9e27651db1d9f16f58ac80ac413e9f84f08b39