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

Unified Diff: mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java

Issue 302923002: Revert of Generate java bindings for constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java
diff --git a/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java b/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java
deleted file mode 100644
index 1c4807b1726a218fcf0a913a3c7d8ac03ed71584..0000000000000000000000000000000000000000
--- a/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2014 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.mojo.bindings;
-
-import android.test.suitebuilder.annotation.SmallTest;
-
-import junit.framework.TestCase;
-
-import org.chromium.mojo.bindings.test.sample.SampleServiceConstants;
-
-import java.lang.reflect.Field;
-import java.lang.reflect.Modifier;
-
-/**
- * Testing generated classes and associated features.
- */
-public class BindingsTest extends TestCase {
-
- /**
- * Testing constants are correctly generated.
- */
- @SmallTest
- public void testConstants() throws NoSuchFieldException, SecurityException {
- assertEquals(3, SampleServiceConstants.THREE);
- Field threeField = SampleServiceConstants.class.getField("THREE");
- assertEquals(byte.class, threeField.getType());
- assertEquals(Modifier.FINAL, threeField.getModifiers() & Modifier.FINAL);
- assertEquals(Modifier.STATIC, threeField.getModifiers() & Modifier.STATIC);
- }
-
-}
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698