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

Unified Diff: ui/arc/notification/arc_notification_manager_unittest.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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
« no previous file with comments | « ui/arc/notification/arc_notification_manager.cc ('k') | ui/aura/client/window_stacking_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_notification_manager_unittest.cc
diff --git a/ui/arc/notification/arc_notification_manager_unittest.cc b/ui/arc/notification/arc_notification_manager_unittest.cc
index 4241860725c3c1038261c0bd866830bbdf869c2f..f9d066fbe8c9778aab922079c2ceb0903098e4fd 100644
--- a/ui/arc/notification/arc_notification_manager_unittest.cc
+++ b/ui/arc/notification/arc_notification_manager_unittest.cc
@@ -27,7 +27,7 @@ class MockMessageCenter : public message_center::FakeMessageCenter {
}
void AddNotification(
- scoped_ptr<message_center::Notification> notification) override {
+ std::unique_ptr<message_center::Notification> notification) override {
visible_notifications_.insert(notification.release());
}
@@ -104,10 +104,10 @@ class ArcNotificationManagerTest : public testing::Test {
private:
base::MessageLoop loop_;
- scoped_ptr<FakeArcBridgeService> service_;
- scoped_ptr<FakeNotificationsInstance> arc_notifications_instance_;
- scoped_ptr<ArcNotificationManager> arc_notification_manager_;
- scoped_ptr<MockMessageCenter> message_center_;
+ std::unique_ptr<FakeArcBridgeService> service_;
+ std::unique_ptr<FakeNotificationsInstance> arc_notifications_instance_;
+ std::unique_ptr<ArcNotificationManager> arc_notification_manager_;
+ std::unique_ptr<MockMessageCenter> message_center_;
void SetUp() override {
NotificationsInstancePtr arc_notifications_instance;
« no previous file with comments | « ui/arc/notification/arc_notification_manager.cc ('k') | ui/aura/client/window_stacking_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698