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

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

Issue 2583933003: Replace deprecated Android java test annotations (Closed)
Patch Set: Rebase again :( Created 3 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.util; 5 package org.chromium.chrome.browser.util;
6 6
7 import android.support.test.filters.SmallTest;
7 import android.test.InstrumentationTestCase; 8 import android.test.InstrumentationTestCase;
8 import android.test.suitebuilder.annotation.SmallTest;
9 9
10 import org.chromium.base.test.util.Feature; 10 import org.chromium.base.test.util.Feature;
11 11
12 public class HashUtilTest extends InstrumentationTestCase { 12 public class HashUtilTest extends InstrumentationTestCase {
13 13
14 @SmallTest 14 @SmallTest
15 @Feature({"Sync", "Omaha"}) 15 @Feature({"Sync", "Omaha"})
16 public void testMd5HashGivesCorrectString() { 16 public void testMd5HashGivesCorrectString() {
17 assertEquals("8e8cd7e8797678284984aa304e779ba5", 17 assertEquals("8e8cd7e8797678284984aa304e779ba5",
18 HashUtil.getMd5Hash(new HashUtil.Params("Chrome for Android"))); 18 HashUtil.getMd5Hash(new HashUtil.Params("Chrome for Android")));
19 // WARNING: The expected value for this must NEVER EVER change. Ever. 19 // WARNING: The expected value for this must NEVER EVER change. Ever.
20 // See http://crbug.com/179565. 20 // See http://crbug.com/179565.
21 assertEquals("6aa987da27016dade54b24ff5b846111", 21 assertEquals("6aa987da27016dade54b24ff5b846111",
22 HashUtil.getMd5Hash(new HashUtil.Params("Chrome for Android").wi thSalt("mySalt"))); 22 HashUtil.getMd5Hash(new HashUtil.Params("Chrome for Android").wi thSalt("mySalt")));
23 } 23 }
24 } 24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698