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

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: Use ScopedAllowIO to avoid race, don't check file existence, windows compile fix 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..3415e0751383c7e1adad4b862555f97a7d633faa 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) {
James Hawkins 2012/03/26 19:55:57 nit: Document what the test is testing.
benwells 2012/03/27 04:24:12 Done.
+ 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