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

Unified Diff: chromeos/network/onc/onc_utils_unittest.cc

Issue 2785883003: Use unique_ptr<DictionaryValue> in ProxyConfigDictionary (Closed)
Patch Set: Fix compilation Created 3 years, 9 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
Index: chromeos/network/onc/onc_utils_unittest.cc
diff --git a/chromeos/network/onc/onc_utils_unittest.cc b/chromeos/network/onc/onc_utils_unittest.cc
index ba4a2ed1c66f28dbf22da7003d8458554aea5332..92cbceb1136d6765cabd8171bd8f5a8c8ecb0a91 100644
--- a/chromeos/network/onc/onc_utils_unittest.cc
+++ b/chromeos/network/onc/onc_utils_unittest.cc
@@ -225,7 +225,8 @@ TEST(ONCUtils, ProxyConfigToOncProxySettings) {
test_case->GetDictionary("ONC_ProxySettings", &onc_proxy_settings);
std::unique_ptr<base::DictionaryValue> actual_proxy_settings =
- ConvertProxyConfigToOncProxySettings(*shill_proxy_config);
+ ConvertProxyConfigToOncProxySettings(
+ shill_proxy_config->CreateDeepCopy());
EXPECT_TRUE(
test_utils::Equals(onc_proxy_settings, actual_proxy_settings.get()));
}

Powered by Google App Engine
This is Rietveld 408576698