Index: base/md5_unittest.cc |
diff --git a/base/md5_unittest.cc b/base/md5_unittest.cc |
index 3926b66ae3015d7ef9d60b990fa8c78fe549a119..b27efe9f96f00836cee30d45d6e532738f3d6e36 100644 |
--- a/base/md5_unittest.cc |
+++ b/base/md5_unittest.cc |
@@ -2,11 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/md5.h" |
+ |
#include <string.h> |
+ |
+#include <memory> |
#include <string> |
-#include "base/memory/scoped_ptr.h" |
-#include "base/md5.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace base { |
@@ -66,7 +68,7 @@ TEST(MD5, MD5SumOneByteData) { |
TEST(MD5, MD5SumLongData) { |
const int length = 10 * 1024 * 1024 + 1; |
- scoped_ptr<char[]> data(new char[length]); |
+ std::unique_ptr<char[]> data(new char[length]); |
for (int i = 0; i < length; ++i) |
data[i] = i & 0xFF; |
@@ -108,7 +110,7 @@ TEST(MD5, ContextWithLongData) { |
MD5Init(&ctx); |
const int length = 10 * 1024 * 1024 + 1; |
- scoped_ptr<char[]> data(new char[length]); |
+ std::unique_ptr<char[]> data(new char[length]); |
for (int i = 0; i < length; ++i) |
data[i] = i & 0xFF; |