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

Unified Diff: third_party/crashpad/crashpad/util/win/process_info_test.cc

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium 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
Index: third_party/crashpad/crashpad/util/win/process_info_test.cc
diff --git a/third_party/crashpad/crashpad/util/win/process_info_test.cc b/third_party/crashpad/crashpad/util/win/process_info_test.cc
index 7f9b6dac50f3200b68bb8a3984afd7a3006c9408..be2cfed0a2c340101dd0d09d6e864e819d87feb3 100644
--- a/third_party/crashpad/crashpad/util/win/process_info_test.cc
+++ b/third_party/crashpad/crashpad/util/win/process_info_test.cc
@@ -18,8 +18,9 @@
#include <intrin.h>
#include <wchar.h>
+#include <memory>
+
#include "base/files/file_path.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
@@ -495,7 +496,7 @@ TEST(ProcessInfo, ReadableRanges) {
// Also make sure what we think we can read corresponds with what we can
// actually read.
- scoped_ptr<unsigned char[]> into(new unsigned char[kBlockSize * 6]);
+ std::unique_ptr<unsigned char[]> into(new unsigned char[kBlockSize * 6]);
SIZE_T bytes_read;
EXPECT_TRUE(ReadProcessMemory(
@@ -631,7 +632,7 @@ TEST(ProcessInfo, Handles) {
TEST(ProcessInfo, OutOfRangeCheck) {
const size_t kAllocationSize = 12345;
- scoped_ptr<char[]> safe_memory(new char[kAllocationSize]);
+ std::unique_ptr<char[]> safe_memory(new char[kAllocationSize]);
ProcessInfo info;
info.Initialize(GetCurrentProcess());

Powered by Google App Engine
This is Rietveld 408576698