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

Side by Side Diff: net/android/javatests/src/org/chromium/net/NetErrorsTest.java

Issue 10912136: Build NetError.java to use in java side tests by preprocessing net_errors.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed to net.gyp and fixed comments Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * Tests to verify that NetError.java is created succesfully.
7 */
8
9 package org.chromium.net;
10
11 import android.test.InstrumentationTestCase;
12 import android.test.suitebuilder.annotation.SmallTest;
13
14 import org.chromium.net.NetError;
15
16 import org.chromium.base.test.Feature;
17
18 public class NetErrorsTest extends InstrumentationTestCase {
19 // These are manually copied and should be kept in sync with net_error_list. h.
20 private static int IO_PENDING_ERROR = -1;
21 private static int FAILED_ERROR = -2;
22
23 /**
24 * Test whether we can include NetError.java and call to static integers def ined in the file.
25 *
26 * @throws Exception
27 */
28 @SmallTest
29 @Feature({"TabContents"})
Yaron 2012/09/07 22:49:06 Doesn't seem like a "TabContents" test. For lack o
30 public void testExampleErrorDefined() throws Exception {
31 assertEquals(IO_PENDING_ERROR, NetError.ERR_IO_PENDING);
32 assertEquals(FAILED_ERROR, NetError.ERR_FAILED);
33 }
34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698