OLD | NEW |
(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 // See TEST_DATA_DIR in build/android/pylib/constants.py |
| 12 private final static String DATA_DIR = "file:///sdcard/chrome/test/data/"; |
| 13 |
| 14 /** |
| 15 * Construct a suitable URL for loading a test data file. |
| 16 * |
| 17 * @param path Pathname relative to chrome/test/data/android/device_files |
| 18 */ |
| 19 public static String getTestFileUrl(String path) { |
| 20 return DATA_DIR + path; |
| 21 } |
| 22 } |
OLD | NEW |