Merge "Fixed an issue where test had lingering inflations" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7ac45d97cf
@@ -101,7 +101,7 @@ public class NotificationContentInflaterTest extends SysuiTestCase {
|
|||||||
mNotificationInflater.setUsesIncreasedHeadsUpHeight(true);
|
mNotificationInflater.setUsesIncreasedHeadsUpHeight(true);
|
||||||
Notification.Builder builder = spy(mBuilder);
|
Notification.Builder builder = spy(mBuilder);
|
||||||
mNotificationInflater.inflateNotificationViews(
|
mNotificationInflater.inflateNotificationViews(
|
||||||
false /* inflateSynchronously */,
|
true /* inflateSynchronously */,
|
||||||
FLAG_CONTENT_VIEW_ALL,
|
FLAG_CONTENT_VIEW_ALL,
|
||||||
builder,
|
builder,
|
||||||
mContext);
|
mContext);
|
||||||
@@ -113,7 +113,7 @@ public class NotificationContentInflaterTest extends SysuiTestCase {
|
|||||||
mNotificationInflater.setUsesIncreasedHeight(true);
|
mNotificationInflater.setUsesIncreasedHeight(true);
|
||||||
Notification.Builder builder = spy(mBuilder);
|
Notification.Builder builder = spy(mBuilder);
|
||||||
mNotificationInflater.inflateNotificationViews(
|
mNotificationInflater.inflateNotificationViews(
|
||||||
false /* inflateSynchronously */,
|
true /* inflateSynchronously */,
|
||||||
FLAG_CONTENT_VIEW_ALL,
|
FLAG_CONTENT_VIEW_ALL,
|
||||||
builder,
|
builder,
|
||||||
mContext);
|
mContext);
|
||||||
@@ -161,6 +161,7 @@ public class NotificationContentInflaterTest extends SysuiTestCase {
|
|||||||
@Test
|
@Test
|
||||||
public void testRemovedNotInflated() throws Exception {
|
public void testRemovedNotInflated() throws Exception {
|
||||||
mRow.setRemoved();
|
mRow.setRemoved();
|
||||||
|
mNotificationInflater.setInflateSynchronously(true);
|
||||||
mNotificationInflater.inflateNotificationViews();
|
mNotificationInflater.inflateNotificationViews();
|
||||||
Assert.assertNull(mRow.getEntry().getRunningTask());
|
Assert.assertNull(mRow.getEntry().getRunningTask());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user