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

COVERAGE SUMMARY FOR SOURCE FILE [GURLUtils.java]

nameclass, %method, %block, %line, %
GURLUtils.java0%   (0/1)0%   (0/3)0%   (0/9)0%   (0/3)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class GURLUtils0%   (0/1)0%   (0/3)0%   (0/9)0%   (0/3)
GURLUtils (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getOrigin (String): String 0%   (0/1)0%   (0/3)0%   (0/1)
getScheme (String): String 0%   (0/1)0%   (0/3)0%   (0/1)

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 
5package org.chromium.net;
6 
7import org.chromium.base.JNINamespace;
8 
9/**
10 * Class to access the GURL library from java.
11 */
12@JNINamespace("net")
13public final class GURLUtils {
14 
15    /**
16     * Get the origin of an url: Ex getOrigin("http://www.example.com:8080/index.html?bar=foo")
17     * would return "http://www.example.com:8080". It will return an empty string for an
18     * invalid url.
19     *
20     * @return The origin of the url
21     */
22    public static String getOrigin(String url) {
23        return nativeGetOrigin(url);
24    }
25 
26    /**
27     * Get the scheme of the url (e.g. http, https, file). The returned string
28     * contains everything before the "://".
29     *
30     * @return The scheme of the url.
31     */
32    public static String getScheme(String url) {
33        return nativeGetScheme(url);
34    }
35 
36    private static native String nativeGetOrigin(String url);
37    private static native String nativeGetScheme(String url);
38}

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