Index: content/shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java |
diff --git a/content/shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java b/content/shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2942efe2d4c2b6d7e9bf0abb2ad3dd75464a0680 |
--- /dev/null |
+++ b/content/shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java |
@@ -0,0 +1,26 @@ |
+// Copyright 2013 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.content_shell; |
+ |
+import android.content.Context; |
+ |
+import org.chromium.base.CalledByNative; |
+import org.chromium.base.JNINamespace; |
+ |
+/** |
+ * Utility methods used when using content_shell for running Blink's layout |
bulach
2013/06/19 17:57:42
s/used when using/used by/
Peter Beverloo
2013/06/19 19:48:32
Done.
|
+ * tests on Android. |
+ */ |
+@JNINamespace("content") |
+public class ShellLayoutTestUtils { |
bulach
2013/06/19 17:57:42
nit: s/public//
Peter Beverloo
2013/06/19 19:48:32
Done.
|
+ /** |
+ * @return The directory in which the test files, for example FIFOs, can be stored. |
+ */ |
+ @SuppressWarnings("unused") |
+ @CalledByNative |
+ public static String getApplicationFilesDirectory(Context appContext) { |
bulach
2013/06/19 17:57:42
nit: s/public/private/
Peter Beverloo
2013/06/19 19:48:32
Done. Weird, though, since we access it from outsi
|
+ return appContext.getFilesDir().getAbsolutePath(); |
+ } |
+} |