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

Unified Diff: components/proxy_config/proxy_config_dictionary_unittest.cc

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr 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 | « components/proxy_config/proxy_config_dictionary.h ('k') | components/query_parser/snippet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proxy_config/proxy_config_dictionary_unittest.cc
diff --git a/components/proxy_config/proxy_config_dictionary_unittest.cc b/components/proxy_config/proxy_config_dictionary_unittest.cc
index ca73ab0647f068364ebf2b28d199a0aef8167f85..33f5364c14b7160005d3a2c7711033473a920f1c 100644
--- a/components/proxy_config/proxy_config_dictionary_unittest.cc
+++ b/components/proxy_config/proxy_config_dictionary_unittest.cc
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/proxy_config/proxy_config_dictionary.h"
+
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
-#include "components/proxy_config/proxy_config_dictionary.h"
#include "testing/gtest/include/gtest/gtest.h"
struct ProxyConfigHolder {
@@ -17,7 +18,7 @@ struct ProxyConfigHolder {
};
TEST(ProxyConfigDictionaryTest, CreateDirect) {
- scoped_ptr<base::DictionaryValue> dict_value(
+ std::unique_ptr<base::DictionaryValue> dict_value(
ProxyConfigDictionary::CreateDirect());
ProxyConfigDictionary dict(dict_value.get());
ProxyConfigHolder h;
@@ -30,7 +31,7 @@ TEST(ProxyConfigDictionaryTest, CreateDirect) {
}
TEST(ProxyConfigDictionaryTest, CreateAutoDetect) {
- scoped_ptr<base::DictionaryValue> dict_value(
+ std::unique_ptr<base::DictionaryValue> dict_value(
ProxyConfigDictionary::CreateAutoDetect());
ProxyConfigDictionary dict(dict_value.get());
ProxyConfigHolder h;
@@ -43,7 +44,7 @@ TEST(ProxyConfigDictionaryTest, CreateAutoDetect) {
}
TEST(ProxyConfigDictionaryTest, CreatePacScript) {
- scoped_ptr<base::DictionaryValue> dict_value(
+ std::unique_ptr<base::DictionaryValue> dict_value(
ProxyConfigDictionary::CreatePacScript("pac", false));
ProxyConfigDictionary dict(dict_value.get());
ProxyConfigHolder h;
@@ -57,7 +58,7 @@ TEST(ProxyConfigDictionaryTest, CreatePacScript) {
}
TEST(ProxyConfigDictionaryTest, CreateFixedServers) {
- scoped_ptr<base::DictionaryValue> dict_value(
+ std::unique_ptr<base::DictionaryValue> dict_value(
ProxyConfigDictionary::CreateFixedServers("http://1.2.3.4",
"http://foo"));
ProxyConfigDictionary dict(dict_value.get());
@@ -73,7 +74,7 @@ TEST(ProxyConfigDictionaryTest, CreateFixedServers) {
}
TEST(ProxyConfigDictionaryTest, CreateSystem) {
- scoped_ptr<base::DictionaryValue> dict_value(
+ std::unique_ptr<base::DictionaryValue> dict_value(
ProxyConfigDictionary::CreateSystem());
ProxyConfigDictionary dict(dict_value.get());
ProxyConfigHolder h;
« no previous file with comments | « components/proxy_config/proxy_config_dictionary.h ('k') | components/query_parser/snippet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698