| Index: chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java
|
| index 99eea9d45f9bb7bfe77fa192d4e2806d6a73d489..f550a64c01283b99693a8ff9e4e6a1a4ea96a8f3 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java
|
| @@ -41,6 +41,9 @@ public void testSetAll() {
|
| Bitmap largeIcon = Bitmap.createBitmap(
|
| new int[] {Color.RED}, 1 /* width */, 1 /* height */, Bitmap.Config.ARGB_8888);
|
|
|
| + Bitmap actionIcon = Bitmap.createBitmap(
|
| + new int[] {Color.GRAY}, 1 /* width */, 1 /* height */, Bitmap.Config.ARGB_8888);
|
| +
|
| Notification notification =
|
| new StandardNotificationBuilder(context)
|
| .setSmallIcon(R.drawable.ic_chrome)
|
| @@ -53,7 +56,8 @@ public void testSetAll() {
|
| .setVibrate(new long[] {100L})
|
| .setContentIntent(pendingContentIntent)
|
| .setDeleteIntent(pendingDeleteIntent)
|
| - .addAction(0 /* iconId */, "button", null /* intent */)
|
| + .addAction(actionIcon, "button 1", null /* intent */)
|
| + .addAction(actionIcon, "button 2", null /* intent */)
|
| .addSettingsAction(0 /* iconId */, "settings", null /* intent */)
|
| .build();
|
|
|
| @@ -68,8 +72,9 @@ public void testSetAll() {
|
| assertEquals(100L, notification.vibrate[0]);
|
| assertEquals(pendingContentIntent, notification.contentIntent);
|
| assertEquals(pendingDeleteIntent, notification.deleteIntent);
|
| - assertEquals(2, notification.actions.length);
|
| - assertEquals("button", notification.actions[0].title);
|
| - assertEquals("settings", notification.actions[1].title);
|
| + assertEquals(3, notification.actions.length);
|
| + assertEquals("button 1", notification.actions[0].title);
|
| + assertEquals("button 2", notification.actions[1].title);
|
| + assertEquals("settings", notification.actions[2].title);
|
| }
|
| }
|
|
|