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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/configure_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/configure_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/configure_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/configure_unittest.cc
index cab8e51d2f1c60782a5830bde902770dbcc304dd..9a6350787efea227829f51caf7a72eb40e7551e6 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/configure_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/configure_unittest.cc
@@ -4,12 +4,12 @@
#include "chrome/browser/chromeos/file_system_provider/operations/configure.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"
@@ -100,7 +100,8 @@ TEST_F(FileSystemProviderOperationsConfigureTest, OnSuccess) {
EXPECT_TRUE(configure.Execute(kRequestId));
- configure.OnSuccess(kRequestId, scoped_ptr<RequestValue>(new RequestValue()),
+ configure.OnSuccess(kRequestId,
+ std::unique_ptr<RequestValue>(new RequestValue()),
false /* has_more */);
ASSERT_EQ(1u, callback_log.size());
base::File::Error event_result = callback_log[0];
@@ -119,7 +120,8 @@ TEST_F(FileSystemProviderOperationsConfigureTest, OnError) {
EXPECT_TRUE(configure.Execute(kRequestId));
- configure.OnError(kRequestId, scoped_ptr<RequestValue>(new RequestValue()),
+ configure.OnError(kRequestId,
+ std::unique_ptr<RequestValue>(new RequestValue()),
base::File::FILE_ERROR_NOT_FOUND);
ASSERT_EQ(1u, callback_log.size());
base::File::Error event_result = callback_log[0];

Powered by Google App Engine
This is Rietveld 408576698