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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/util/HashUtilTest.java

Issue 2766373004: Convert the rest of chrome_public_test_apk InstrumentationTestCases to JUnit4 (Closed)
Patch Set: nits and rebase Created 3 years, 9 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/util/HashUtilTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/util/HashUtilTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/util/HashUtilTest.java
index 3115c73e4593f0cfe8557c5fa90b078b20a986bd..acec9af592b94de83c13d4ce4993c71f256e79d6 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/util/HashUtilTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/util/HashUtilTest.java
@@ -5,20 +5,25 @@
package org.chromium.chrome.browser.util;
import android.support.test.filters.SmallTest;
-import android.test.InstrumentationTestCase;
-import org.chromium.base.test.util.Feature;
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
-public class HashUtilTest extends InstrumentationTestCase {
+import org.chromium.base.test.util.Feature;
+import org.chromium.chrome.test.ChromeJUnit4ClassRunner;
+@RunWith(ChromeJUnit4ClassRunner.class)
+public class HashUtilTest {
+ @Test
@SmallTest
@Feature({"Sync", "Omaha"})
public void testMd5HashGivesCorrectString() {
- assertEquals("8e8cd7e8797678284984aa304e779ba5",
+ Assert.assertEquals("8e8cd7e8797678284984aa304e779ba5",
HashUtil.getMd5Hash(new HashUtil.Params("Chrome for Android")));
// WARNING: The expected value for this must NEVER EVER change. Ever.
// See http://crbug.com/179565.
- assertEquals("6aa987da27016dade54b24ff5b846111",
+ Assert.assertEquals("6aa987da27016dade54b24ff5b846111",
HashUtil.getMd5Hash(new HashUtil.Params("Chrome for Android").withSalt("mySalt")));
}
}

Powered by Google App Engine
This is Rietveld 408576698