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

Unified Diff: ui/message_center/message_center_tray_unittest.cc

Issue 1539583003: Convert Pass()→std::move() in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: ui/message_center/message_center_tray_unittest.cc
diff --git a/ui/message_center/message_center_tray_unittest.cc b/ui/message_center/message_center_tray_unittest.cc
index 5277df2cdbf8ec49efdfa63fb66ac1e5cc59450a..1143e4043210eb4321629d99913467bc30c6b839 100644
--- a/ui/message_center/message_center_tray_unittest.cc
+++ b/ui/message_center/message_center_tray_unittest.cc
@@ -4,6 +4,8 @@
#include "ui/message_center/message_center_tray.h"
+#include <utility>
+
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/models/menu_model.h"
@@ -83,7 +85,7 @@ class MessageCenterTrayTest : public testing::Test {
ASCIIToUTF16("Notification message body."), gfx::Image(),
ASCIIToUTF16("www.test.org"), GURL(), notifier_id,
message_center::RichNotificationData(), NULL /* delegate */));
- message_center_->AddNotification(notification.Pass());
+ message_center_->AddNotification(std::move(notification));
}
scoped_ptr<MockDelegate> delegate_;
scoped_ptr<MessageCenterTray> message_center_tray_;
@@ -226,7 +228,7 @@ TEST_F(MessageCenterTrayTest, MessageCenterReopenPopupsForSystemPriority) {
ASCIIToUTF16("www.test.org"), GURL(), DummyNotifierId(),
message_center::RichNotificationData(), NULL /* delegate */));
notification->SetSystemPriority();
- message_center_->AddNotification(notification.Pass());
+ message_center_->AddNotification(std::move(notification));
ASSERT_TRUE(message_center_tray_->popups_visible());
ASSERT_FALSE(message_center_tray_->message_center_visible());
@@ -355,7 +357,7 @@ TEST_F(MessageCenterTrayTest, ContextMenuTestPopupsOnly) {
ASCIIToUTF16("Notification message body."), gfx::Image(),
base::string16() /* empty display source */, GURL(), notifier_id2,
message_center::RichNotificationData(), NULL /* delegate */));
- message_center_->AddNotification(notification.Pass());
+ message_center_->AddNotification(std::move(notification));
AddNotification(id3, notifier_id);
« no previous file with comments | « ui/message_center/message_center_impl_unittest.cc ('k') | ui/message_center/views/message_center_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698