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

Side by Side Diff: base/android/javatests/src/org/chromium/base/test/UrlUtils.java

Issue 10913074: Add WebView implementation for CookieManager. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix path for UrlUtils.java 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
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 package org.chromium.base.test;
6
7 /**
8 * Collection of URL utilities.
9 */
10 public class UrlUtils {
11 private final static String DATA_DIR = "file:///data/local/tmp/chrome/test/d ata/";
12
13 /**
14 * Construct a suitable URL for loading a test data file.
15 *
16 * @param path Pathname relative to <chrome_src>/chrome/test/data/android/de vice_files/
joth 2012/09/05 20:13:06 See https://chromiumcodereview.appspot.com/1091109
17 */
18 public static String getTestFileUrl(String path) {
19 return DATA_DIR + path;
20 }
21
22 /**
23 * Construct a suitable URL for loading a test data file from the hosts's
joth 2012/09/05 20:13:06 nit: remove one s, and make less ambiguous: the lo
24 * http server.
25 *
26 * @param path Pathname relative to the document root.
27 * @return an http url.
28 */
29 public static String getTestHttpUrl(String path) {
30 return TestHttpServerClient.getUrl(path);
31 }
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698