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

Unified Diff: base/power_monitor/power_monitor_unittest.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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
« no previous file with comments | « base/power_monitor/power_monitor.cc ('k') | base/process/launch_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/power_monitor/power_monitor_unittest.cc
diff --git a/base/power_monitor/power_monitor_unittest.cc b/base/power_monitor/power_monitor_unittest.cc
index 798a21c8c471dcf0966bfdfd4dfec3f8b3197b33..0c4e7cb9030422d3d53da38e7342caac59a5cc17 100644
--- a/base/power_monitor/power_monitor_unittest.cc
+++ b/base/power_monitor/power_monitor_unittest.cc
@@ -14,7 +14,7 @@ class PowerMonitorTest : public testing::Test {
PowerMonitorTest() {
power_monitor_source_ = new PowerMonitorTestSource();
power_monitor_.reset(new PowerMonitor(
- scoped_ptr<PowerMonitorSource>(power_monitor_source_)));
+ std::unique_ptr<PowerMonitorSource>(power_monitor_source_)));
}
~PowerMonitorTest() override{};
@@ -23,7 +23,7 @@ class PowerMonitorTest : public testing::Test {
private:
PowerMonitorTestSource* power_monitor_source_;
- scoped_ptr<PowerMonitor> power_monitor_;
+ std::unique_ptr<PowerMonitor> power_monitor_;
DISALLOW_COPY_AND_ASSIGN(PowerMonitorTest);
};
« no previous file with comments | « base/power_monitor/power_monitor.cc ('k') | base/process/launch_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698