OSDN Git Service

Fix NotificationGuts tests
authorMady Mellor <madym@google.com>
Mon, 30 Jan 2017 21:57:58 +0000 (13:57 -0800)
committerMady Mellor <madym@google.com>
Mon, 30 Jan 2017 22:06:22 +0000 (14:06 -0800)
commit0a66e0791d128c10ad63beef92b1ff7852221482
tree032fed0f899ee8c868cb384b4eea5dbae405e255
parente7c8aeefb449ea4cf810d5bdcd94ebe3de7541f4
Fix NotificationGuts tests

- NPE’s ‘cause there was no interaction listener set in the tests, added
  this to test set up
- Failures with saving importance because closeControls no longer saves
  any changes, it just closes the controls now. Updated those tests to
  use saveImportance instead.
- Removed the test ensuring that closeControls wouldn’t save importance
  if it was passed save = false, since closeControls no longer does that.

Test: NotificationGuts tests no longer fail (runtest systemui)
Change-Id: I3251f4f379654f4cc9eb3a506b722e515c6fe971
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationGutsTest.java