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

Side by Side Diff: testing/android/junit/java/src/org/chromium/testing/local/TestDir.java

Issue 2772483002: Commment signed webapks working and verified. (Closed)
Patch Set: Wrong package order. Created 3 years, 9 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 2017 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.testing.local;
6
7 import java.io.File;
8
9 /**
10 * Tools to get the junit test path.
11 */
12 public class TestDir {
pkotwicz 2017/03/26 01:37:05 This change should be in a separate CL
13 private static final String TEST_FOLDER = "/chrome/test/data/";
14
15 /**
16 * Construct the full path of a test data file.
17 * @param path Pathname relative to chrome/test/data.
18 */
19 public static String getTestFilePath(String path) {
20 String junitRoot = System.getProperty("dir.source.root");
21 if (junitRoot == null) {
22 junitRoot = "";
23 }
24 return new File(junitRoot + TEST_FOLDER + path).getPath();
25 }
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698