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

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: Removed unneeded header 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..a203a267a9f9f12f540367c75b02502d22b8253f 100644
--- a/chrome/browser/extensions/platform_app_browsertest.cc
+++ b/chrome/browser/extensions/platform_app_browsertest.cc
@@ -196,3 +196,11 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowStorage) {
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_WindowsApi) {
ASSERT_TRUE(RunPlatformAppTest("platform_apps/windows_api")) << message_;
}
+
+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->AppendArg(test_doc.value());
+ ASSERT_TRUE(RunPlatformAppTest("platform_apps/document_editor")) << message_;
+}
« no previous file with comments | « no previous file | chrome/browser/extensions/platform_app_intent_dispatcher.h » ('j') | chrome/browser/ui/extensions/shell_window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698