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

Unified Diff: base/memory/shared_memory_win_unittest.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/memory/shared_memory_win.cc ('k') | base/memory/weak_ptr_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/shared_memory_win_unittest.cc
diff --git a/base/memory/shared_memory_win_unittest.cc b/base/memory/shared_memory_win_unittest.cc
index a9199627c7b1fda96a4b37d76187315148efdcf2..5fc132d25a1fbed6d02574402d69c517ba4eb9e0 100644
--- a/base/memory/shared_memory_win_unittest.cc
+++ b/base/memory/shared_memory_win_unittest.cc
@@ -5,9 +5,10 @@
#include <windows.h>
#include <sddl.h>
+#include <memory>
+
#include "base/command_line.h"
#include "base/memory/free_deleter.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/shared_memory.h"
#include "base/process/process.h"
#include "base/rand_util.h"
@@ -88,7 +89,8 @@ win::ScopedHandle ReadHandleFromPipe(HANDLE pipe) {
void WriteHandleToPipe(HANDLE pipe, HANDLE handle) {
uint32_t handle_as_int = base::win::HandleToUint32(handle);
- scoped_ptr<char, base::FreeDeleter> buffer(static_cast<char*>(malloc(1000)));
+ std::unique_ptr<char, base::FreeDeleter> buffer(
+ static_cast<char*>(malloc(1000)));
size_t index = 0;
while (handle_as_int > 0) {
buffer.get()[index] = handle_as_int % 10;
« no previous file with comments | « base/memory/shared_memory_win.cc ('k') | base/memory/weak_ptr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698