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

Unified Diff: chrome/browser/extensions/platform_app_browsertest.cc

Issue 9845003: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Include files Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/platform_app_browsertest.cc
diff --git a/chrome/browser/extensions/platform_app_browsertest.cc b/chrome/browser/extensions/platform_app_browsertest.cc
index 3aeac39a9f1de56ada32255e07dcb067dd0f81eb..7d7681950507e77ff5b9fde6a2b1ef68ad2a3d8a 100644
--- a/chrome/browser/extensions/platform_app_browsertest.cc
+++ b/chrome/browser/extensions/platform_app_browsertest.cc
@@ -196,3 +196,14 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowStorage) {
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_WindowsApi) {
ASSERT_TRUE(RunPlatformAppTest("platform_apps/windows_api")) << message_;
}
+
+// Tests that command line parameters get passed through to platform apps
+// via window.intent correctly, and that the file names passed through can be
+// read successfully.
+IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DocumentEditor) {
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ FilePath test_doc(test_data_dir_.AppendASCII(
+ "platform_apps/document_editor/test.txt"));
+ command_line->AppendArgPath(test_doc);
+ ASSERT_TRUE(RunPlatformAppTest("platform_apps/document_editor")) << message_;
+}

Powered by Google App Engine
This is Rietveld 408576698