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

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

Issue 1878313003: Convert //chrome/installer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert decompress.cc in mini_installer. Created 4 years, 8 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/installer_state.cc ('k') | chrome/installer/util/l10n_string_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/installer_state_unittest.cc
diff --git a/chrome/installer/util/installer_state_unittest.cc b/chrome/installer/util/installer_state_unittest.cc
index 1ced49e2e66760e5289c60de2d1e216d7a7880a1..5576fbc0a7d0164f466a4111c3cd8a096a459797 100644
--- a/chrome/installer/util/installer_state_unittest.cc
+++ b/chrome/installer/util/installer_state_unittest.cc
@@ -476,7 +476,8 @@ TEST_F(InstallerStateTest, GetCurrentVersionMigrateChrome) {
installer_state.Initialize(cmd_line, prefs, machine_state);
// Is the Chrome version picked up?
- scoped_ptr<Version> version(installer_state.GetCurrentVersion(machine_state));
+ std::unique_ptr<Version> version(
+ installer_state.GetCurrentVersion(machine_state));
EXPECT_TRUE(version.get() != NULL);
}
@@ -729,7 +730,7 @@ class InstallerStateCriticalVersionTest : public ::testing::Test {
static Version* high_version_;
base::CommandLine cmd_line_;
- scoped_ptr<MasterPreferences> prefs_;
+ std::unique_ptr<MasterPreferences> prefs_;
InstallationState machine_state_;
MockInstallerState installer_state_;
};
« no previous file with comments | « chrome/installer/util/installer_state.cc ('k') | chrome/installer/util/l10n_string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698