Index: chrome/android/javatests/src/org/chromium/chrome/browser/WebappAuthenticatorTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/WebappAuthenticatorTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/WebappAuthenticatorTest.java |
deleted file mode 100644 |
index 2d075f155c56701fd28d7936ed0f98eeb7ed00e1..0000000000000000000000000000000000000000 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/WebappAuthenticatorTest.java |
+++ /dev/null |
@@ -1,23 +0,0 @@ |
-// Copyright 2013 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-package org.chromium.chrome.browser; |
- |
-import android.content.Context; |
-import android.test.InstrumentationTestCase; |
-import android.test.suitebuilder.annotation.SmallTest; |
- |
-public class WebappAuthenticatorTest extends InstrumentationTestCase { |
- @SmallTest |
- public void testAuthentication() { |
- Context context = getInstrumentation().getTargetContext(); |
- String url = "http://www.example.org/hello.html"; |
- byte[] mac = WebappAuthenticator.getMacForUrl(context, url); |
- assertNotNull(mac); |
- assertTrue(WebappAuthenticator.isUrlValid(context, url, mac)); |
- assertFalse(WebappAuthenticator.isUrlValid(context, url + "?goats=true", mac)); |
- mac[4] += 1; |
- assertFalse(WebappAuthenticator.isUrlValid(context, url, mac)); |
- } |
-} |