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

Unified Diff: mojo/services/html_viewer/ax_provider_apptest.cc

Issue 1070463003: Initialize command line arguments for Mojo apptests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restoring url-mappings and specifying test apps on the commandline. Created 5 years, 8 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 | « mojo/application/application_test_main_chromium.cc ('k') | mojo/shell/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/ax_provider_apptest.cc
diff --git a/mojo/services/html_viewer/ax_provider_apptest.cc b/mojo/services/html_viewer/ax_provider_apptest.cc
index 29dc5016e11018b3ad2e3c8ec3c69232b7b4bc08..0eae932151dbf73e963ea90fd92350e8cfc52db1 100644
--- a/mojo/services/html_viewer/ax_provider_apptest.cc
+++ b/mojo/services/html_viewer/ax_provider_apptest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/bind.h"
+#include "base/command_line.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/test/test_timeouts.h"
@@ -59,6 +60,12 @@ bool AxTreeContainsText(const Array<AxNodePtr>& tree, const String& text) {
typedef test::ApplicationTestBase AXProviderTest;
TEST_F(AXProviderTest, HelloWorld) {
+ printf("MSW Commandline: %s\n", base::CommandLine::ForCurrentProcess()->GetCommandLineString().c_str());
+ printf("MSW application impl Commandline args: ");
+ for (auto& arg : application_impl()->args())
+ printf("%s ", arg.c_str());
+ printf("\n");
+
// Start a test server for net/data/test.html access.
net::SpawnedTestServer server(
net::SpawnedTestServer::TYPE_HTTP, net::SpawnedTestServer::kLocalhost,
« no previous file with comments | « mojo/application/application_test_main_chromium.cc ('k') | mojo/shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698