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

Unified Diff: remoting/base/breakpad_win_unittest.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/base/breakpad_win.cc ('k') | remoting/base/buffered_socket_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/breakpad_win_unittest.cc
diff --git a/remoting/base/breakpad_win_unittest.cc b/remoting/base/breakpad_win_unittest.cc
index 877ea32adfa2d2e4a2039228f006bcfd4626626f..f0da52cfdb5312043136c3a6f987f484a99f5276 100644
--- a/remoting/base/breakpad_win_unittest.cc
+++ b/remoting/base/breakpad_win_unittest.cc
@@ -3,12 +3,13 @@
// found in the LICENSE file.
#include <stdio.h>
+
+#include <memory>
#include <string>
#include "base/compiler_specific.h"
#include "base/environment.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "breakpad/src/client/windows/crash_generation/client_info.h"
@@ -74,8 +75,8 @@ class BreakpadWinDeathTest : public testing::Test {
void SetUp() override;
protected:
- scoped_ptr<google_breakpad::CrashGenerationServer> crash_server_;
- scoped_ptr<MockCrashServerCallbacks> callbacks_;
+ std::unique_ptr<google_breakpad::CrashGenerationServer> crash_server_;
+ std::unique_ptr<MockCrashServerCallbacks> callbacks_;
std::wstring pipe_name_;
};
@@ -86,7 +87,7 @@ BreakpadWinDeathTest::~BreakpadWinDeathTest() {
}
void BreakpadWinDeathTest::SetUp() {
- scoped_ptr<base::Environment> environment(base::Environment::Create());
+ std::unique_ptr<base::Environment> environment(base::Environment::Create());
std::string pipe_name;
if (environment->GetVar(kPipeVariableName, &pipe_name)) {
// This is a child process. Initialize crash dump reporting to the crash
« no previous file with comments | « remoting/base/breakpad_win.cc ('k') | remoting/base/buffered_socket_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698