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

Unified Diff: ui/display/chromeos/update_display_configuration_task_unittest.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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: ui/display/chromeos/update_display_configuration_task_unittest.cc
diff --git a/ui/display/chromeos/update_display_configuration_task_unittest.cc b/ui/display/chromeos/update_display_configuration_task_unittest.cc
index c134842266bd0bcaff4c97131b1cc764a0beebb8..5b1c523af9706299268d7c39c589919665df0204 100644
--- a/ui/display/chromeos/update_display_configuration_task_unittest.cc
+++ b/ui/display/chromeos/update_display_configuration_task_unittest.cc
@@ -5,10 +5,12 @@
#include "ui/display/chromeos/update_display_configuration_task.h"
#include <stddef.h>
+
#include <utility>
#include "base/bind.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -55,7 +57,7 @@ class TestDisplayLayoutManager : public DisplayLayoutManager {
}
void set_software_mirroring_controller(
- scoped_ptr<DisplayConfigurator::SoftwareMirroringController>
+ std::unique_ptr<DisplayConfigurator::SoftwareMirroringController>
software_mirroring_controller) {
software_mirroring_controller_ = std::move(software_mirroring_controller);
}
@@ -136,7 +138,7 @@ class TestDisplayLayoutManager : public DisplayLayoutManager {
chromeos::DisplayPowerState power_state_;
- scoped_ptr<DisplayConfigurator::SoftwareMirroringController>
+ std::unique_ptr<DisplayConfigurator::SoftwareMirroringController>
software_mirroring_controller_;
DISALLOW_COPY_AND_ASSIGN(TestDisplayLayoutManager);
@@ -404,7 +406,7 @@ TEST_F(UpdateDisplayConfigurationTaskTest, SingleChangePowerConfiguration) {
TEST_F(UpdateDisplayConfigurationTaskTest, NoopSoftwareMirrorConfiguration) {
layout_manager_.set_should_mirror(false);
layout_manager_.set_software_mirroring_controller(
- make_scoped_ptr(new TestSoftwareMirroringController()));
+ base::WrapUnique(new TestSoftwareMirroringController()));
UpdateDisplays(2);
{
@@ -438,7 +440,7 @@ TEST_F(UpdateDisplayConfigurationTaskTest,
ForceConfigurationWhileGoingToSoftwareMirror) {
layout_manager_.set_should_mirror(false);
layout_manager_.set_software_mirroring_controller(
- make_scoped_ptr(new TestSoftwareMirroringController()));
+ base::WrapUnique(new TestSoftwareMirroringController()));
UpdateDisplays(2);
{
« no previous file with comments | « ui/display/chromeos/update_display_configuration_task.h ('k') | ui/display/chromeos/x11/display_configurator_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698