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

Unified Diff: chrome/installer/util/lzma_file_allocator_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/l10n_string_util.cc ('k') | chrome/installer/util/master_preferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/lzma_file_allocator_unittest.cc
diff --git a/chrome/installer/util/lzma_file_allocator_unittest.cc b/chrome/installer/util/lzma_file_allocator_unittest.cc
index 246b67e0abd73d9cc619ab3db5ae2e093266390c..e790495cd37d018c74d0429133828a35be03ea0d 100644
--- a/chrome/installer/util/lzma_file_allocator_unittest.cc
+++ b/chrome/installer/util/lzma_file_allocator_unittest.cc
@@ -6,11 +6,12 @@
#include <stddef.h>
+#include <memory>
#include <string>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "testing/gtest/include/gtest/gtest.h"
class LzmaFileAllocatorTest : public testing::Test {
@@ -62,8 +63,8 @@ TEST_F(LzmaFileAllocatorTest, SizeIsZeroTest) {
}
TEST_F(LzmaFileAllocatorTest, DeleteAfterCloseTest) {
- scoped_ptr<LzmaFileAllocator> allocator =
- make_scoped_ptr(new LzmaFileAllocator(temp_dir_.path()));
+ std::unique_ptr<LzmaFileAllocator> allocator =
+ base::WrapUnique(new LzmaFileAllocator(temp_dir_.path()));
base::FilePath file_path = allocator->mapped_file_path_;
ASSERT_TRUE(base::PathExists(file_path));
allocator.reset();
« no previous file with comments | « chrome/installer/util/l10n_string_util.cc ('k') | chrome/installer/util/master_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698