OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/network/onc/onc_validator.h" | 5 #include "chromeos/network/onc/onc_validator.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // bool: true if the ONC is managed). | 132 // bool: true if the ONC is managed). |
133 INSTANTIATE_TEST_CASE_P( | 133 INSTANTIATE_TEST_CASE_P( |
134 ONCValidatorValidTest, | 134 ONCValidatorValidTest, |
135 ONCValidatorValidTest, | 135 ONCValidatorValidTest, |
136 ::testing::Values(OncParams("managed_toplevel1.onc", | 136 ::testing::Values(OncParams("managed_toplevel1.onc", |
137 &kToplevelConfigurationSignature, | 137 &kToplevelConfigurationSignature, |
138 true), | 138 true), |
139 OncParams("managed_toplevel2.onc", | 139 OncParams("managed_toplevel2.onc", |
140 &kToplevelConfigurationSignature, | 140 &kToplevelConfigurationSignature, |
141 true), | 141 true), |
| 142 OncParams("managed_toplevel_with_global_config.onc", |
| 143 &kToplevelConfigurationSignature, |
| 144 true), |
142 // Check that at least one configuration is accepted for | 145 // Check that at least one configuration is accepted for |
143 // device policies. | 146 // device policies. |
144 OncParams("managed_toplevel_wifi_peap.onc", | 147 OncParams("managed_toplevel_wifi_peap.onc", |
145 &kToplevelConfigurationSignature, | 148 &kToplevelConfigurationSignature, |
146 true, | 149 true, |
147 ::onc::ONC_SOURCE_DEVICE_POLICY), | 150 ::onc::ONC_SOURCE_DEVICE_POLICY), |
148 OncParams("toplevel_wifi_wpa_psk.onc", | 151 OncParams("toplevel_wifi_wpa_psk.onc", |
149 &kToplevelConfigurationSignature, | 152 &kToplevelConfigurationSignature, |
150 false), | 153 false), |
151 OncParams("encrypted.onc", | 154 OncParams("encrypted.onc", |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 std::make_pair(OncParams("managed-network-wrong-type", | 363 std::make_pair(OncParams("managed-network-wrong-type", |
361 &kNetworkConfigurationSignature, true), | 364 &kNetworkConfigurationSignature, true), |
362 RepairParams("", "")), | 365 RepairParams("", "")), |
363 std::make_pair(OncParams("network-with-client-cert-pattern", | 366 std::make_pair(OncParams("network-with-client-cert-pattern", |
364 &kNetworkConfigurationSignature, true, | 367 &kNetworkConfigurationSignature, true, |
365 ::onc::ONC_SOURCE_DEVICE_POLICY), | 368 ::onc::ONC_SOURCE_DEVICE_POLICY), |
366 RepairParams("", "")))); | 369 RepairParams("", "")))); |
367 | 370 |
368 } // namespace onc | 371 } // namespace onc |
369 } // namespace chromeos | 372 } // namespace chromeos |
OLD | NEW |