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

Side by Side Diff: content/shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java

Issue 2540603004: [Android] Redirect std{in,out,err} to sockets for layout tests. (Closed)
Patch Set: rebase Created 3 years, 11 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
« no previous file with comments | « content/shell/android/BUILD.gn ('k') | content/shell/browser/layout_test/layout_test_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content_shell; 5 package org.chromium.content_shell;
6 6
7 import android.content.Context;
8
9 import org.chromium.base.annotations.CalledByNative; 7 import org.chromium.base.annotations.CalledByNative;
10 import org.chromium.base.annotations.JNINamespace; 8 import org.chromium.base.annotations.JNINamespace;
9 import org.chromium.base.test.util.UrlUtils;
11 10
12 /** 11 /**
13 * Utility methods used by content_shell for running Blink's layout tests on And roid. 12 * Utility methods used by content_shell for running Blink's layout tests on And roid.
14 */ 13 */
15 @JNINamespace("content") 14 @JNINamespace("content")
16 class ShellLayoutTestUtils { 15 class ShellLayoutTestUtils {
17 /** 16 /**
18 * @return The directory in which the test files, for example FIFOs, can be stored. 17 * @return The directory in which test data is stored.
19 */ 18 */
20 @SuppressWarnings("unused")
21 @CalledByNative 19 @CalledByNative
22 private static String getApplicationFilesDirectory(Context appContext) { 20 private static String getIsolatedTestRoot() {
23 return appContext.getFilesDir().getAbsolutePath(); 21 return UrlUtils.getIsolatedTestRoot();
24 } 22 }
25 } 23 }
OLDNEW
« no previous file with comments | « content/shell/android/BUILD.gn ('k') | content/shell/browser/layout_test/layout_test_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698