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

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

Issue 311643002: Revert 274278 "Generate java bindings for constants." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | trunk/src/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: trunk/src/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java
===================================================================
--- trunk/src/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java (revision 274295)
+++ trunk/src/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java (working copy)
@@ -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 | trunk/src/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