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

Unified Diff: sync/internal_api/attachments/attachment_service_proxy_unittest.cc

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: sync/internal_api/attachments/attachment_service_proxy_unittest.cc
diff --git a/sync/internal_api/attachments/attachment_service_proxy_unittest.cc b/sync/internal_api/attachments/attachment_service_proxy_unittest.cc
index 059a252f6f7fbe8757400e4f9b04d3fc396ae356..5c227c99ac9281364e93124277dfc62c8aa637d5 100644
--- a/sync/internal_api/attachments/attachment_service_proxy_unittest.cc
+++ b/sync/internal_api/attachments/attachment_service_proxy_unittest.cc
@@ -4,9 +4,10 @@
#include "sync/internal_api/public/attachments/attachment_service_proxy.h"
+#include <memory>
+
#include "base/bind.h"
#include "base/memory/ref_counted_memory.h"
-#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base/synchronization/lock.h"
#include "base/synchronization/waitable_event.h"
@@ -38,7 +39,7 @@ class StubAttachmentService : public AttachmentService,
const GetOrDownloadCallback& callback) override {
CalledOnValidThread();
Increment();
- scoped_ptr<AttachmentMap> attachments(new AttachmentMap());
+ std::unique_ptr<AttachmentMap> attachments(new AttachmentMap());
base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(callback,
@@ -106,7 +107,7 @@ class AttachmentServiceProxyTest : public testing::Test,
// a GetOrDownloadCallback
void IncrementGetOrDownload(const AttachmentService::GetOrDownloadResult&,
- scoped_ptr<AttachmentMap>) {
+ std::unique_ptr<AttachmentMap>) {
CalledOnValidThread();
++count_callback_get_or_download;
}
@@ -120,9 +121,9 @@ class AttachmentServiceProxyTest : public testing::Test,
}
base::MessageLoop loop;
- scoped_ptr<base::Thread> stub_thread;
- scoped_ptr<StubAttachmentService> stub;
- scoped_ptr<AttachmentServiceProxy> proxy;
+ std::unique_ptr<base::Thread> stub_thread;
+ std::unique_ptr<StubAttachmentService> stub;
+ std::unique_ptr<AttachmentServiceProxy> proxy;
AttachmentService::GetOrDownloadCallback callback_get_or_download;

Powered by Google App Engine
This is Rietveld 408576698