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

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

Issue 2621923002: Product cleanups in the wake of multi-install removal. (Closed)
Patch Set: sync to position 442831 Created 3 years, 11 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/product_operations.h ('k') | chrome/installer/util/util_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/product_unittest.cc
diff --git a/chrome/installer/util/product_unittest.cc b/chrome/installer/util/product_unittest.cc
index e855948be586264f560738907b04adbb4819d6f4..8302c4727d6cf46846fab7e3ada9c1335a08f44d 100644
--- a/chrome/installer/util/product_unittest.cc
+++ b/chrome/installer/util/product_unittest.cc
@@ -16,29 +16,20 @@
#include "chrome/installer/util/browser_distribution.h"
#include "chrome/installer/util/google_update_constants.h"
#include "chrome/installer/util/installation_state.h"
-#include "chrome/installer/util/master_preferences.h"
#include "testing/gtest/include/gtest/gtest.h"
using base::win::RegKey;
using installer::Product;
-using installer::MasterPreferences;
using registry_util::RegistryOverrideManager;
TEST(ProductTest, ProductInstallBasic) {
// TODO(tommi): We should mock this and use our mocked distribution.
- const bool multi_install = false;
const bool system_level = true;
- base::CommandLine cmd_line = base::CommandLine::FromString(
- std::wstring(L"setup.exe") +
- (multi_install ? L" --multi-install --chrome" : L"") +
- (system_level ? L" --system-level" : L""));
- installer::MasterPreferences prefs(cmd_line);
installer::InstallationState machine_state;
machine_state.Initialize();
std::unique_ptr<Product> product =
base::MakeUnique<Product>(BrowserDistribution::GetDistribution());
- product->InitializeFromPreferences(prefs);
BrowserDistribution* distribution = product->distribution();
base::FilePath user_data_dir;
« no previous file with comments | « chrome/installer/util/product_operations.h ('k') | chrome/installer/util/util_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698