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

Unified Diff: content/shell/shell_layout_tests_android.h

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
Index: content/shell/shell_layout_tests_android.h
diff --git a/content/shell/shell_layout_tests_android.h b/content/shell/shell_layout_tests_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..9a3c4231098ed21c5d081d7720f8f15841a5c267
--- /dev/null
+++ b/content/shell/shell_layout_tests_android.h
@@ -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.
+
+#ifndef CONTENT_SHELL_SHELL_LAYOUT_TESTS_ANDROID_H_
+#define CONTENT_SHELL_SHELL_LAYOUT_TESTS_ANDROID_H_
+
+#include <string>
+
+class GURL;
+
+namespace content {
+
+// On Android, all passed tests will be paths to a local temporary directory.
+// However, because we can't transfer all test files to the device, translate
+// those paths to a local, forwarded URL so the host can serve them.
+bool GetTestUrlForAndroid(std::string& path_or_url, GURL* url);
+
+// Initialize the nested message loop and FIFOs for Android, and verify that
+// all has been set up using a few appropriate CHECK()s.
+void EnsureInitializeForAndroidLayoutTests();
+
+} // namespace content
+
+#endif // CONTENT_SHELL_SHELL_LAYOUT_TESTS_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698