| Index: base/android/javatests/src/org/chromium/base/test/UrlUtils.java
|
| diff --git a/base/android/javatests/src/org/chromium/base/test/UrlUtils.java b/base/android/javatests/src/org/chromium/base/test/UrlUtils.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1a36a9f872361c66ea1abca8cdf100826b4174b9
|
| --- /dev/null
|
| +++ b/base/android/javatests/src/org/chromium/base/test/UrlUtils.java
|
| @@ -0,0 +1,22 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package org.chromium.base.test;
|
| +
|
| +/**
|
| + * Collection of URL utilities.
|
| + */
|
| +public class UrlUtils {
|
| + // See TEST_DATA_DIR in build/android/pylib/constants.py
|
| + private final static String DATA_DIR = "file:///sdcard/chrome/test/data/";
|
| +
|
| + /**
|
| + * Construct a suitable URL for loading a test data file.
|
| + *
|
| + * @param path Pathname relative to chrome/test/data/android/device_files
|
| + */
|
| + public static String getTestFileUrl(String path) {
|
| + return DATA_DIR + path;
|
| + }
|
| +}
|
|
|