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

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

Issue 1139643006: Rename chrome/android/javatests to javatests_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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/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));
- }
-}

Powered by Google App Engine
This is Rietveld 408576698