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

Unified Diff: chrome/common/service_process_util_unittest.cc

Issue 1880143002: Convert chrome/common to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 | « chrome/common/service_process_util_posix.cc ('k') | chrome/common/service_process_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util_unittest.cc
diff --git a/chrome/common/service_process_util_unittest.cc b/chrome/common/service_process_util_unittest.cc
index f13e88e982842b334acf4839aeb31c8ba440eeb0..e4c655446772e015c522e8361da881c4c846f5d8 100644
--- a/chrome/common/service_process_util_unittest.cc
+++ b/chrome/common/service_process_util_unittest.cc
@@ -4,6 +4,8 @@
#include "chrome/common/service_process_util.h"
+#include <memory>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
@@ -16,7 +18,6 @@
#if !defined(OS_MACOSX)
#include "base/at_exit.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/multiprocess_test.h"
@@ -126,7 +127,7 @@ TEST_F(ServiceProcessStateTest, DISABLED_ReadyState) {
TEST_F(ServiceProcessStateTest, AutoRun) {
ServiceProcessState state;
ASSERT_TRUE(state.AddToAutoRun());
- scoped_ptr<base::CommandLine> autorun_command_line;
+ std::unique_ptr<base::CommandLine> autorun_command_line;
#if defined(OS_WIN)
std::string value_name = GetServiceProcessScopedName("_service_run");
base::string16 value;
@@ -300,8 +301,8 @@ class ServiceProcessStateFileManipulationTest : public ::testing::Test {
base::MessageLoopForUI loop_;
base::Thread io_thread_;
base::FilePath executable_path_, bundle_path_;
- scoped_ptr<MockLaunchd> mock_launchd_;
- scoped_ptr<Launchd::ScopedInstance> scoped_launchd_instance_;
+ std::unique_ptr<MockLaunchd> mock_launchd_;
+ std::unique_ptr<Launchd::ScopedInstance> scoped_launchd_instance_;
ServiceProcessState service_process_state_;
};
« no previous file with comments | « chrome/common/service_process_util_posix.cc ('k') | chrome/common/service_process_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698