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

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

Issue 2476573004: Use InstallDetails in installer_util. (Closed)
Patch Set: sync to position 451835 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/util/install_util_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/run_all_unittests.cc
diff --git a/chrome/installer/util/run_all_unittests.cc b/chrome/installer/util/run_all_unittests.cc
index a667fa40faec9c273824e557c745ab8c25013a1f..9cfc94ea4bff2369bbeb7fa180389eda8ae5aeab 100644
--- a/chrome/installer/util/run_all_unittests.cc
+++ b/chrome/installer/util/run_all_unittests.cc
@@ -7,7 +7,7 @@
#include "base/test/test_suite.h"
#include "base/win/scoped_com_initializer.h"
#include "chrome/common/chrome_paths.h"
-#include "chrome/installer/util/install_util.h"
+#include "chrome/install_static/test/scoped_install_details.h"
int main(int argc, char** argv) {
base::TestSuite test_suite(argc, argv);
@@ -15,12 +15,12 @@ int main(int argc, char** argv) {
// Register Chrome Path provider so that we can get test data dir.
chrome::RegisterPathProvider();
- // Drop CHROME_PROBED_PROGRAM_FILES_PATH if it leaked into the environment.
- InstallUtil::ResetIsPerUserInstallForTest();
-
base::win::ScopedCOMInitializer com_initializer;
if (!com_initializer.succeeded())
return -1;
+
+ install_static::ScopedInstallDetails scoped_install_details;
+
return base::LaunchUnitTests(
argc,
argv,
« no previous file with comments | « chrome/installer/util/install_util_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698