Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3299)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java

Issue 1967233002: Enable disk writes closer to where strict mode violation occurs in NotificationPlatformBridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java
index 2907989b32640844447a36417c72e598764a0d02..2692314eb6eac77577594e5239ef65620bb68de7 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java
@@ -13,7 +13,6 @@ import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.os.Build;
-import android.test.InstrumentationTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import android.util.DisplayMetrics;
import android.view.View;
@@ -24,6 +23,7 @@ import android.widget.TextView;
import org.chromium.base.test.util.Feature;
import org.chromium.chrome.R;
+import org.chromium.content.browser.test.NativeLibraryTestBase;
import java.util.ArrayList;
import java.util.Arrays;
@@ -33,7 +33,14 @@ import java.util.Arrays;
*/
@SuppressLint("NewApi") // For the |extras| property of Notification.
@SuppressWarnings("deprecation") // For the |icon| and |largeIcon| properties of Notification.
-public class CustomNotificationBuilderTest extends InstrumentationTestCase {
+public class CustomNotificationBuilderTest extends NativeLibraryTestBase {
+
+ @Override
+ public void setUp() throws Exception {
+ super.setUp();
+ loadNativeLibraryNoBrowserProcess();
+ }
+
@SmallTest
@Feature({"Browser", "Notifications"})
public void testSetAll() {
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698