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

Unified Diff: ui/message_center/views/message_center_view_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/views/message_center_view_unittest.cc
diff --git a/ui/message_center/views/message_center_view_unittest.cc b/ui/message_center/views/message_center_view_unittest.cc
index 7a4ac518729bd2ff83f8a62ba49bb693d3c0ef1e..8c3043a3cf2b484655d2f5ccef90dcff4f77ed75 100644
--- a/ui/message_center/views/message_center_view_unittest.cc
+++ b/ui/message_center/views/message_center_view_unittest.cc
@@ -2,7 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "ui/message_center/views/message_center_view.h"
+
#include <map>
+#include <utility>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -14,7 +17,6 @@
#include "ui/message_center/notification_list.h"
#include "ui/message_center/notification_types.h"
#include "ui/message_center/views/message_center_controller.h"
-#include "ui/message_center/views/message_center_view.h"
#include "ui/message_center/views/message_list_view.h"
#include "ui/message_center/views/notification_view.h"
@@ -358,7 +360,7 @@ TEST_F(MessageCenterViewTest, SizeAfterUpdate) {
int previous_height = GetMessageListView()->height();
- UpdateNotification(kNotificationId2, notification.Pass());
+ UpdateNotification(kNotificationId2, std::move(notification));
// Wait until the animation finishes if available.
if (GetAnimator()->IsAnimating())
@@ -416,7 +418,7 @@ TEST_F(MessageCenterViewTest, PositionAfterUpdate) {
gfx::Image(), base::UTF8ToUTF16("display source"), GURL(),
NotifierId(NotifierId::APPLICATION, "extension_id"),
message_center::RichNotificationData(), NULL));
- UpdateNotification(kNotificationId2, notification.Pass());
+ UpdateNotification(kNotificationId2, std::move(notification));
// Wait until the animation finishes if available.
if (GetAnimator()->IsAnimating())
« no previous file with comments | « ui/message_center/message_center_tray_unittest.cc ('k') | ui/message_center/views/message_popup_collection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698