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

Unified Diff: ash/shelf/shelf_unittest.cc

Issue 2718563008: mash: Use mojo for ShelfItemDelegate and [app] MenuItem. (Closed)
Patch Set: Address comments. Created 3 years, 9 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 | « ash/public/interfaces/shelf_struct_traits.h ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_unittest.cc
diff --git a/ash/shelf/shelf_unittest.cc b/ash/shelf/shelf_unittest.cc
index 060018c6988521e5f0818d7087b48957caa9162b..bc15e772181c8f0625e9fb9e39f36e5eab14f59e 100644
--- a/ash/shelf/shelf_unittest.cc
+++ b/ash/shelf/shelf_unittest.cc
@@ -72,10 +72,9 @@ TEST_F(ShelfTest, CheckHoverAfterMenu) {
item.status = STATUS_RUNNING;
int index = shelf_model()->Add(item);
- std::unique_ptr<ShelfItemDelegate> delegate(
- new test::TestShelfItemDelegate(NULL));
- shelf_model()->SetShelfItemDelegate(shelf_model()->items()[index].id,
- std::move(delegate));
+ shelf_model()->SetShelfItemDelegate(
+ shelf_model()->items()[index].id,
+ base::MakeUnique<test::TestShelfItemDelegate>(nullptr));
ASSERT_EQ(++button_count, test_api()->GetButtonCount());
ShelfButton* button = test_api()->GetButton(index);
« no previous file with comments | « ash/public/interfaces/shelf_struct_traits.h ('k') | ash/shelf/shelf_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698