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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/create_directory_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/create_directory_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/create_directory_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/create_directory_unittest.cc
index 8dfc0390478c08ed70cff13ba64334145563a6da..ba6828884df94e9b393182836d1bd25529400048 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/create_directory_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/create_directory_unittest.cc
@@ -4,12 +4,12 @@
#include "chrome/browser/chromeos/file_system_provider/operations/create_directory.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"
@@ -134,7 +134,7 @@ TEST_F(FileSystemProviderOperationsCreateDirectoryTest, OnSuccess) {
EXPECT_TRUE(create_directory.Execute(kRequestId));
create_directory.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]);
@@ -155,7 +155,7 @@ TEST_F(FileSystemProviderOperationsCreateDirectoryTest, OnError) {
EXPECT_TRUE(create_directory.Execute(kRequestId));
create_directory.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