This source file includes following definitions.
- Feature
- testMd5HashGivesCorrectString
package org.chromium.chrome.browser.util;
import android.test.InstrumentationTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import org.chromium.base.test.util.Feature;
public class HashUtilTest extends InstrumentationTestCase {
@SmallTest
@Feature({"Sync", "Omaha"})
public void testMd5HashGivesCorrectString() {
assertEquals("8e8cd7e8797678284984aa304e779ba5",
HashUtil.getMd5Hash(new HashUtil.Params("Chrome for Android")));
assertEquals("6aa987da27016dade54b24ff5b846111",
HashUtil.getMd5Hash(new HashUtil.Params("Chrome for Android").withSalt("mySalt")));
}
}