// Copyright 2014 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.

#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/test/test_timeouts.h"
#include "mojo/application/application_runner_chromium.h"
#include "mojo/application/application_test_base_chromium.h"
#include "mojo/public/c/system/main.h"

MojoResult MojoMain(MojoHandle handle) {
  // An AtExitManager instance is needed to construct message loops.
  base::AtExitManager at_exit;

  // Initialize test timeouts, which requires CommandLine::ForCurrentProcess().
  // TODO(msw): Plumb relevant command line args before initializing timeouts.
  mojo::ApplicationRunnerChromium::InitBaseCommandLine();
  TestTimeouts::Initialize();

  return mojo::test::RunAllTests(handle);
}

// Copyright 2014 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.

#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/test/test_timeouts.h"
#include "mojo/application/application_runner_chromium.h"
#include "mojo/application/application_test_base_chromium.h"
#include "mojo/public/c/system/main.h"

MojoResult MojoMain(MojoHandle handle) {
  // An AtExitManager instance is needed to construct message loops.
  base::AtExitManager at_exit;

  // Initialize the current process Commandline and test timeouts.
  mojo::ApplicationRunnerChromium::InitBaseCommandLine();
  TestTimeouts::Initialize();

  return mojo::test::RunAllTests(handle);
}

Update the application_test_main CommandLine comment.
Update the application_test_main CommandLine comment.

BUG=NONE
TEST=NONE
TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/1097783003

Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#326183}
