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

Unified Diff: ash/wm/lock_state_controller_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
Index: ash/wm/lock_state_controller_unittest.cc
diff --git a/ash/wm/lock_state_controller_unittest.cc b/ash/wm/lock_state_controller_unittest.cc
index 2ab2532bd4e918b211997af34a3f2a2043c907d3..014dcda8be9067fa96c968345c7c666c775419db 100644
--- a/ash/wm/lock_state_controller_unittest.cc
+++ b/ash/wm/lock_state_controller_unittest.cc
@@ -888,7 +888,7 @@ TEST_F(LockStateControllerTest, IgnorePowerButtonIfScreenIsOff) {
TEST_F(LockStateControllerTest, HonorPowerButtonInDockedMode) {
std::vector<std::unique_ptr<const ui::DisplayMode>> modes;
modes.push_back(
- base::WrapUnique(new ui::DisplayMode(gfx::Size(1, 1), false, 60.0f)));
+ base::MakeUnique<ui::DisplayMode>(gfx::Size(1, 1), false, 60.0f));
// Create two outputs, the first internal and the second external.
ui::DisplayConfigurator::DisplayStateList outputs;
@@ -899,7 +899,7 @@ TEST_F(LockStateControllerTest, HonorPowerButtonInDockedMode) {
modes.clear();
modes.push_back(
- base::WrapUnique(new ui::DisplayMode(gfx::Size(1, 1), false, 60.0f)));
+ base::MakeUnique<ui::DisplayMode>(gfx::Size(1, 1), false, 60.0f));
ui::TestDisplaySnapshot external_display;
external_display.set_type(ui::DISPLAY_CONNECTION_TYPE_HDMI);
external_display.set_modes(std::move(modes));
« no previous file with comments | « ash/wm/drag_window_controller.cc ('k') | ash/wm/overview/scoped_overview_animation_settings_factory_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698