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

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: 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 * Test suite for Android's default ProxySelector implementation. The purpose of these tests
Yaron 2012/09/07 01:05:44 This whole comment seems misplaced
7 * is to check that the behaviour of the ProxySelector implementation matches wh at we have
8 * implemented in net/proxy/proxy_config_service_android.cc.
9 *
10 * IMPORTANT: These test cases are generated from net/android/tools/proxy_test_c ases.py, so if any
11 * of these tests fail, please be sure to edit that file and regenerate the test cases here and also
12 * in net/proxy/proxy_config_service_android_unittests.cc if required.
13 */
14
15 package org.chromium.net;
16
17 import android.test.InstrumentationTestCase;
18 import android.test.suitebuilder.annotation.SmallTest;
19
20 import org.chromium.net.NetError;
21
22 import org.chromium.base.test.Feature;
23
24 public class NetErrorsTest extends InstrumentationTestCase {
25 private static int IO_PENDING_ERROR = -1;
26 private static int FAILED_ERROR = -2;
joth 2012/09/07 21:45:46 comment these are copied from net_error_list.h and
27
28 /**
29 * Test whether we can include NetError.java and call to static integers def ined in the file.
30 *
31 * @throws Exception
32 */
33 @SmallTest
34 @Feature({"Android-WebView"})
Yaron 2012/09/07 01:05:44 This isn't true.
35 public void testExampleErrorDefined() throws Exception {
36 assertEquals(IO_PENDING_ERROR, NetError.ERR_IO_PENDING);
37 assertEquals(FAILED_ERROR, NetError.ERR_FAILED);
38 }
39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698