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

Unified Diff: chromeos/network/managed_network_configuration_handler_unittest.cc

Issue 14192017: Extract certificate policy application from NetworkLibrary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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
Index: chromeos/network/managed_network_configuration_handler_unittest.cc
diff --git a/chromeos/network/managed_network_configuration_handler_unittest.cc b/chromeos/network/managed_network_configuration_handler_unittest.cc
index 49c150a4872edb8717165dbe539f7cd74dd36267..def9204afc87df29a6198bfa4f3453b7f5a05bf5 100644
--- a/chromeos/network/managed_network_configuration_handler_unittest.cc
+++ b/chromeos/network/managed_network_configuration_handler_unittest.cc
@@ -111,7 +111,11 @@ class ManagedNetworkConfigurationHandlerTest : public testing::Test {
else
policy = test_utils::ReadTestDictionary(path_to_onc);
- managed_handler()->SetPolicy(onc::ONC_SOURCE_USER_POLICY, *policy);
+ base::ListValue* network_configs = NULL;
+ policy->GetListWithoutPathExpansion(
+ onc::toplevel_config::kNetworkConfigurations, &network_configs);
+
+ managed_handler()->SetPolicy(onc::ONC_SOURCE_USER_POLICY, *network_configs);
}
ManagedNetworkConfigurationHandler* managed_handler() {
« no previous file with comments | « chromeos/network/managed_network_configuration_handler.cc ('k') | chromeos/network/mock_certificate_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698