| Index: chrome/app/run_all_tests.cc
|
| diff --git a/chrome/app/run_all_tests.cc b/chrome/app/run_all_tests.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3bfe96e6ae4994182d12e2c96ba4d91a57302f33
|
| --- /dev/null
|
| +++ b/chrome/app/run_all_tests.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2016 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/bind.h"
|
| +#include "base/test/launcher/unit_test_launcher.h"
|
| +#include "base/test/test_suite.h"
|
| +#include "build/build_config.h"
|
| +#include "chrome/install_static/install_details.h"
|
| +#include "chrome/install_static/install_modes.h"
|
| +#include "chrome/install_static/install_util.h"
|
| +
|
| +int main(int argc, char** argv) {
|
| + base::TestSuite test_suite(argc, argv);
|
| +
|
| +#if defined(OS_WIN)
|
| + // Create a primordial InstallDetails instance for the test.
|
| + std::unique_ptr<install_static::PrimaryInstallDetails> install_details(
|
| + new install_static::PrimaryInstallDetails());
|
| + install_details->set_mode(&install_static::kInstallModes[0]);
|
| + install_details->set_channel(
|
| + install_static::kInstallModes[0].default_channel_name);
|
| + install_static::InstallDetails::SetForProcess(std::move(install_details));
|
| +#endif
|
| +
|
| + return base::LaunchUnitTests(
|
| + argc, argv,
|
| + base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
|
| +}
|
|
|