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

Side by Side Diff: chrome/app/run_all_tests.cc

Issue 2487783002: Make Crashpad use the user data dir, rather than always default location (Closed)
Patch Set: . Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/bind.h"
6 #include "base/test/launcher/unit_test_launcher.h"
7 #include "base/test/test_suite.h"
8 #include "build/build_config.h"
9 #include "chrome/install_static/install_details.h"
10 #include "chrome/install_static/install_modes.h"
11 #include "chrome/install_static/install_util.h"
12
13 int main(int argc, char** argv) {
14 base::TestSuite test_suite(argc, argv);
15
16 #if defined(OS_WIN)
17 // Create a primordial InstallDetails instance for the test.
18 std::unique_ptr<install_static::PrimaryInstallDetails> install_details(
19 new install_static::PrimaryInstallDetails());
20 install_details->set_mode(&install_static::kInstallModes[0]);
21 install_details->set_channel(
22 install_static::kInstallModes[0].default_channel_name);
23 install_static::InstallDetails::SetForProcess(std::move(install_details));
24 #endif
25
26 return base::LaunchUnitTests(
27 argc, argv,
28 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698