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

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

Issue 17265005: content_shell: Create the FIFOs needed for running Android layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/shell_browser_main.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5ea2f77a5c66560699b0d9eaef41d8b118bcc213
--- /dev/null
+++ b/content/shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java
@@ -0,0 +1,25 @@
+// 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 by content_shell for running Blink's layout tests on Android.
+ */
+@JNINamespace("content")
+class ShellLayoutTestUtils {
+ /**
+ * @return The directory in which the test files, for example FIFOs, can be stored.
+ */
+ @SuppressWarnings("unused")
+ @CalledByNative
+ private static String getApplicationFilesDirectory(Context appContext) {
+ return appContext.getFilesDir().getAbsolutePath();
+ }
+}
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/shell_browser_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698