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

Unified Diff: remoting/test/app_remoting_test_driver_environment.h

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/test/app_remoting_test_driver.cc ('k') | remoting/test/app_remoting_test_driver_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/app_remoting_test_driver_environment.h
diff --git a/remoting/test/app_remoting_test_driver_environment.h b/remoting/test/app_remoting_test_driver_environment.h
index 4a989c0fc9c48866980517a7b9cc014e0b7358da..6bbb43fb321d563cd97d744489cb41ee319ae5ad 100644
--- a/remoting/test/app_remoting_test_driver_environment.h
+++ b/remoting/test/app_remoting_test_driver_environment.h
@@ -6,12 +6,12 @@
#define REMOTING_TEST_APP_REMOTING_TEST_DRIVER_ENVIRONMENT_H_
#include <map>
+#include <memory>
#include <string>
#include <vector>
#include "base/files/file_path.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "remoting/test/remote_application_details.h"
#include "remoting/test/remote_host_info_fetcher.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -150,7 +150,7 @@ class AppRemotingTestDriverEnvironment : public testing::Environment {
remoting::test::RemoteHostInfoFetcher* test_remote_host_info_fetcher_;
// Used for running network request tasks.
- scoped_ptr<base::MessageLoopForIO> message_loop_;
+ std::unique_ptr<base::MessageLoopForIO> message_loop_;
// Contains the host ids to release when the environment is torn down.
// The key is the application id and the value is a list of hosts.
@@ -161,7 +161,7 @@ class AppRemotingTestDriverEnvironment : public testing::Environment {
// Used to provide application specific instances of the
// AppRemotingTestDriverEnvironment class.
-extern scoped_ptr<AppRemotingTestDriverEnvironment>
+extern std::unique_ptr<AppRemotingTestDriverEnvironment>
CreateAppRemotingTestDriverEnvironment(
const AppRemotingTestDriverEnvironment::EnvironmentOptions& options);
« no previous file with comments | « remoting/test/app_remoting_test_driver.cc ('k') | remoting/test/app_remoting_test_driver_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698