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

Unified Diff: ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc

Issue 2257763002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/shell/shell_delegate_impl.cc ('k') | ash/sysui/sysui_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc b/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc
index e379c3e52694e73b78c8c85465d2c77b0f503099..b8d45fa3e68b4faf96698244f7a22336d2d61ba3 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc
+++ b/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc
@@ -37,7 +37,7 @@ class AshPopupAlignmentDelegateTest : public test::AshTestBase {
keyboard::switches::kEnableVirtualKeyboard);
test::AshTestBase::SetUp();
SetAlignmentDelegate(
- base::WrapUnique(new AshPopupAlignmentDelegate(GetPrimaryShelf())));
+ base::MakeUnique<AshPopupAlignmentDelegate>(GetPrimaryShelf()));
}
void TearDown() override {
@@ -253,7 +253,7 @@ TEST_F(AshPopupAlignmentDelegateTest, Extended) {
return;
UpdateDisplay("600x600,800x800");
SetAlignmentDelegate(
- base::WrapUnique(new AshPopupAlignmentDelegate(GetPrimaryShelf())));
+ base::MakeUnique<AshPopupAlignmentDelegate>(GetPrimaryShelf()));
display::Display second_display =
Shell::GetInstance()->display_manager()->GetDisplayAt(1u);
@@ -281,7 +281,7 @@ TEST_F(AshPopupAlignmentDelegateTest, Unified) {
UpdateDisplay("600x600,800x800");
SetAlignmentDelegate(
- base::WrapUnique(new AshPopupAlignmentDelegate(GetPrimaryShelf())));
+ base::MakeUnique<AshPopupAlignmentDelegate>(GetPrimaryShelf()));
EXPECT_GT(600,
alignment_delegate()->GetToastOriginX(gfx::Rect(0, 0, 10, 10)));
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/sysui/sysui_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698