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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/copy_entry_unittest.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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: chrome/browser/chromeos/file_system_provider/operations/copy_entry_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/copy_entry_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/copy_entry_unittest.cc
index 606692db9b99942b2577e0cde99a08325c0e7e07..7e2191256df0445dcb74634780f411d648c4ef15 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/copy_entry_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/copy_entry_unittest.cc
@@ -4,12 +4,12 @@
#include "chrome/browser/chromeos/file_system_provider/operations/copy_entry.h"
+#include <memory>
#include <string>
#include <vector>
#include "base/files/file.h"
#include "base/files/file_path.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/chromeos/file_system_provider/operations/test_util.h"
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h"
#include "chrome/common/extensions/api/file_system_provider.h"
@@ -131,7 +131,7 @@ TEST_F(FileSystemProviderOperationsCopyEntryTest, OnSuccess) {
EXPECT_TRUE(copy_entry.Execute(kRequestId));
copy_entry.OnSuccess(kRequestId,
- scoped_ptr<RequestValue>(new RequestValue()),
+ std::unique_ptr<RequestValue>(new RequestValue()),
false /* has_more */);
ASSERT_EQ(1u, callback_log.size());
EXPECT_EQ(base::File::FILE_OK, callback_log[0]);
@@ -151,7 +151,7 @@ TEST_F(FileSystemProviderOperationsCopyEntryTest, OnError) {
EXPECT_TRUE(copy_entry.Execute(kRequestId));
copy_entry.OnError(kRequestId,
- scoped_ptr<RequestValue>(new RequestValue()),
+ std::unique_ptr<RequestValue>(new RequestValue()),
base::File::FILE_ERROR_TOO_MANY_OPENED);
ASSERT_EQ(1u, callback_log.size());
EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, callback_log[0]);

Powered by Google App Engine
This is Rietveld 408576698