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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/ntp/interests/InterestsServiceTest.java

Issue 1856273002: Change all FlakyTest import to use org.chromium.base.test.util.FlakyTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: chrome/android/javatests/src/org/chromium/chrome/browser/ntp/interests/InterestsServiceTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/interests/InterestsServiceTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/interests/InterestsServiceTest.java
index 1bcd55e2b04311e6576d54f3df9ceb7d8a41cd9b..49fe3b82e67d5d2db60fd036da619b4211572663 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/interests/InterestsServiceTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/interests/InterestsServiceTest.java
@@ -6,10 +6,10 @@ package org.chromium.chrome.browser.ntp.interests;
import android.accounts.Account;
import android.content.Context;
-import android.test.FlakyTest;
import org.chromium.base.CommandLine;
import org.chromium.base.ThreadUtils;
+import org.chromium.base.test.util.FlakyTest;
import org.chromium.chrome.browser.ntp.interests.InterestsService.Interest;
import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.signin.AccountTrackerService;
@@ -90,11 +90,10 @@ public class InterestsServiceTest extends NativeLibraryTestBase {
}
/**
- * http://crbug.com/585173
* @SmallTest
* @Feature({"NewTabPage"})
*/
- @FlakyTest
+ @FlakyTest(message = "http://crbug.com/585173")
public void testEmptyInterests() throws Exception {
String response = "{\n"
+ " \"interests\": []\n"
@@ -106,11 +105,10 @@ public class InterestsServiceTest extends NativeLibraryTestBase {
}
/**
- * http://crbug.com/585173
* @SmallTest
* @Feature({"NewTabPage"})
*/
- @FlakyTest
+ @FlakyTest(message = "http://crbug.com/585173")
public void testInterests() throws Exception {
String response = "{\n"
+ " \"interests\": [\n"
@@ -138,7 +136,7 @@ public class InterestsServiceTest extends NativeLibraryTestBase {
* @SmallTest
* @Feature({"NewTabPage"})
*/
- @FlakyTest
+ @FlakyTest(message = "http://crbug.com/585173")
public void testBadlyFormedInterests() throws Exception {
String response = "{\n"
+ " \"interests\": [";
@@ -148,11 +146,10 @@ public class InterestsServiceTest extends NativeLibraryTestBase {
}
/**
- * http://crbug.com/585173
* @SmallTest
* @Feature({"NewTabPage"})
*/
- @FlakyTest
+ @FlakyTest(message = "http://crbug.com/585173")
public void testEmptyResponse() throws Exception {
Interest[] result = serveResponseAndRequestInterests("");

Powered by Google App Engine
This is Rietveld 408576698