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

Unified Diff: base/android/javatests/src/org/chromium/base/ContextTypesTest.java

Issue 136343002: Remove Chrome for TV code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 11 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
« no previous file with comments | « base/android/java/src/org/chromium/base/PathUtils.java ('k') | base/base.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/javatests/src/org/chromium/base/ContextTypesTest.java
diff --git a/base/android/javatests/src/org/chromium/base/ContextTypesTest.java b/base/android/javatests/src/org/chromium/base/ContextTypesTest.java
deleted file mode 100644
index aefa4a6988c6abce2d8afe7c4611ecc296015e98..0000000000000000000000000000000000000000
--- a/base/android/javatests/src/org/chromium/base/ContextTypesTest.java
+++ /dev/null
@@ -1,43 +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.base;
-
-import static org.chromium.base.ContextTypes.CONTEXT_TYPE_NORMAL;
-import static org.chromium.base.ContextTypes.CONTEXT_TYPE_WEBAPP;
-
-import android.content.Context;
-import android.test.AndroidTestCase;
-import android.test.mock.MockContext;
-import android.test.suitebuilder.annotation.SmallTest;
-
-public class ContextTypesTest extends AndroidTestCase {
-
- @SmallTest
- public void testReturnsExpectedType() {
- ContextTypes contextTypes = ContextTypes.getInstance();
- Context normal = new MockContext();
- Context webapp = new MockContext();
- contextTypes.put(normal, CONTEXT_TYPE_NORMAL);
- contextTypes.put(webapp, CONTEXT_TYPE_WEBAPP);
- assertEquals(CONTEXT_TYPE_NORMAL, contextTypes.getType(normal));
- assertEquals(CONTEXT_TYPE_WEBAPP, contextTypes.getType(webapp));
- }
-
- @SmallTest
- public void testAbsentContextReturnsNormalType() {
- assertEquals(CONTEXT_TYPE_NORMAL, ContextTypes.getInstance().getType(new MockContext()));
- }
-
- @SmallTest
- public void testPutInvalidTypeThrowsException() {
- boolean exceptionThrown = false;
- try {
- ContextTypes.getInstance().put(new MockContext(), -1);
- } catch (IllegalArgumentException e) {
- exceptionThrown = true;
- }
- assertTrue(exceptionThrown);
- }
-}
« no previous file with comments | « base/android/java/src/org/chromium/base/PathUtils.java ('k') | base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698