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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/read_file_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/read_file_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc b/chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc
index 72986ba4af51d071316211c193c18d9f292032f5..72931438b28c083093bb41c4b09876923382c0fd 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/chromeos/file_system_provider/operations/read_file.h"
+#include <memory>
#include <string>
#include <utility>
@@ -11,7 +12,6 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/values.h"
#include "chrome/browser/chromeos/file_system_provider/operations/test_util.h"
@@ -182,9 +182,9 @@ TEST_F(FileSystemProviderOperationsReadFileTest, OnSuccess) {
value_as_list.Set(3, new base::FundamentalValue(has_more));
value_as_list.Set(4, new base::FundamentalValue(execution_time));
- scoped_ptr<Params> params(Params::Create(value_as_list));
+ std::unique_ptr<Params> params(Params::Create(value_as_list));
ASSERT_TRUE(params.get());
- scoped_ptr<RequestValue> request_value(
+ std::unique_ptr<RequestValue> request_value(
RequestValue::CreateForReadFileSuccess(std::move(params)));
ASSERT_TRUE(request_value.get());
@@ -217,7 +217,7 @@ TEST_F(FileSystemProviderOperationsReadFileTest, OnError) {
EXPECT_TRUE(read_file.Execute(kRequestId));
read_file.OnError(kRequestId,
- scoped_ptr<RequestValue>(new RequestValue()),
+ std::unique_ptr<RequestValue>(new RequestValue()),
base::File::FILE_ERROR_TOO_MANY_OPENED);
ASSERT_EQ(1u, callback_logger.events().size());

Powered by Google App Engine
This is Rietveld 408576698