EMMA Coverage Report (generated Fri Aug 23 16:39:17 PDT 2013)
[all classes][org.chromium.net]

COVERAGE SUMMARY FOR SOURCE FILE [NetErrorsTest.java]

nameclass, %method, %block, %line, %
NetErrorsTest.java100% (1/1)100% (3/3)100% (15/15)100% (6/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class NetErrorsTest100% (1/1)100% (3/3)100% (15/15)100% (6/6)
<static initializer> 100% (1/1)100% (5/5)100% (2/2)
NetErrorsTest (): void 100% (1/1)100% (3/3)100% (1/1)
testExampleErrorDefined (): void 100% (1/1)100% (7/7)100% (3/3)

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 
9package org.chromium.net;
10 
11import android.test.InstrumentationTestCase;
12import android.test.suitebuilder.annotation.SmallTest;
13 
14import org.chromium.base.test.util.Feature;
15 
16public class NetErrorsTest extends InstrumentationTestCase {
17    // These are manually copied and should be kept in sync with net_error_list.h.
18    private static int IO_PENDING_ERROR = -1;
19    private static int FAILED_ERROR = -2;
20 
21    /**
22     * Test whether we can include NetError.java and call to static integers defined in the file.
23     *
24     * @throws Exception
25     */
26    @SmallTest
27    @Feature({"Android-AppBase"})
28    public void testExampleErrorDefined() throws Exception {
29        assertEquals(IO_PENDING_ERROR, NetError.ERR_IO_PENDING);
30        assertEquals(FAILED_ERROR, NetError.ERR_FAILED);
31    }
32}

[all classes][org.chromium.net]
EMMA 2.0.5312 (C) Vladimir Roubtsov