OSDN Git Service

Change cross profile calendar API used in robolectric test.
authoryuemingw <yuemingw@google.com>
Tue, 22 Jan 2019 20:12:42 +0000 (20:12 +0000)
committerYueming Wang <yuemingw@google.com>
Thu, 24 Jan 2019 00:59:37 +0000 (00:59 +0000)
commit264ae20256819b0a62ed2684d4d02ecd87fc42e3
treea7603ac678785f8f51fc0b085132e3e14d52f8b0
parentd3c02d87f9f5fde8301dfe19951120dade721f57
Change cross profile calendar API used in robolectric test.

The API changed from addCrossProfileCalendarPackage to
setCrossProfileCalendarPackages recently due to our decision
in b/121179845. Also added test for the case when
the whitelist is set to null.

Bug: 121179845
Test: make ROBOTEST_FILTER=CrossProfileCalendarPreferenceControllerTest -j40 RunSettingsRoboTests
Change-Id: I66b92aba6d26334e48207275b2d8981203598e15
tests/robotests/src/com/android/settings/accounts/CrossProfileCalendarPreferenceControllerTest.java