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

Unified Diff: chrome/installer/setup/run_all_unittests.cc

Issue 2459583002: Use InstallDetails in setup. (Closed)
Patch Set: another doc comment Created 3 years, 10 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 | « chrome/installer/setup/installer_state.cc ('k') | chrome/installer/setup/setup_install_details.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/run_all_unittests.cc
diff --git a/chrome/installer/setup/run_all_unittests.cc b/chrome/installer/setup/run_all_unittests.cc
index 97b4d93914f44a9a4680a6f88a146fc2513a4ea3..6c123f39d1e6aea10e8f59255c99f8cccb08b0fd 100644
--- a/chrome/installer/setup/run_all_unittests.cc
+++ b/chrome/installer/setup/run_all_unittests.cc
@@ -7,6 +7,7 @@
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/install_static/test/scoped_install_details.h"
#include "chrome/installer/setup/setup_util_unittest.h"
int main(int argc, char** argv) {
@@ -20,6 +21,8 @@ int main(int argc, char** argv) {
// Register Chrome Path provider so that we can get test data dir.
chrome::RegisterPathProvider();
+ install_static::ScopedInstallDetails scoped_install_details;
+
return base::LaunchUnitTests(
argc,
argv,
« no previous file with comments | « chrome/installer/setup/installer_state.cc ('k') | chrome/installer/setup/setup_install_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698