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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 // Ensure that state values from Shill aren't accepted as | 278 // Ensure that state values from Shill aren't accepted as |
279 // configuration. | 279 // configuration. |
280 std::make_pair(OncParams("network-state-field", | 280 std::make_pair(OncParams("network-state-field", |
281 &kNetworkConfigurationSignature, | 281 &kNetworkConfigurationSignature, |
282 false), | 282 false), |
283 RepairParams("", "network-repaired")), | 283 RepairParams("", "network-repaired")), |
284 std::make_pair(OncParams("network-nested-state-field", | 284 std::make_pair(OncParams("network-nested-state-field", |
285 &kNetworkConfigurationSignature, | 285 &kNetworkConfigurationSignature, |
286 false), | 286 false), |
287 RepairParams("", | 287 RepairParams("", |
288 "network-nested-state-field-repaired")))); | 288 "network-nested-state-field-repaired")), |
| 289 std::make_pair(OncParams("toplevel-with-repairable-networks", |
| 290 &kToplevelConfigurationSignature, |
| 291 false, |
| 292 ONC_SOURCE_DEVICE_POLICY), |
| 293 RepairParams("", "toplevel-with-repaired-networks")))); |
289 | 294 |
290 // Strict and liberal validator repair identically. | 295 // Strict and liberal validator repair identically. |
291 INSTANTIATE_TEST_CASE_P( | 296 INSTANTIATE_TEST_CASE_P( |
292 StrictAndLiberalRepairIdentically, | 297 StrictAndLiberalRepairIdentically, |
293 ONCValidatorTestRepairable, | 298 ONCValidatorTestRepairable, |
294 ::testing::Values( | 299 ::testing::Values( |
295 std::make_pair(OncParams("toplevel-invalid-network", | 300 std::make_pair(OncParams("toplevel-invalid-network", |
296 &kToplevelConfigurationSignature, | 301 &kToplevelConfigurationSignature, |
297 false), | 302 false), |
298 RepairParams("toplevel-repaired", | 303 RepairParams("toplevel-repaired", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 std::make_pair(OncParams("managed-network-wrong-type", | 357 std::make_pair(OncParams("managed-network-wrong-type", |
353 &kNetworkConfigurationSignature, true), | 358 &kNetworkConfigurationSignature, true), |
354 RepairParams("", "")), | 359 RepairParams("", "")), |
355 std::make_pair(OncParams("network-with-client-cert-pattern", | 360 std::make_pair(OncParams("network-with-client-cert-pattern", |
356 &kNetworkConfigurationSignature, true, | 361 &kNetworkConfigurationSignature, true, |
357 ONC_SOURCE_DEVICE_POLICY), | 362 ONC_SOURCE_DEVICE_POLICY), |
358 RepairParams("", "")))); | 363 RepairParams("", "")))); |
359 | 364 |
360 } // namespace onc | 365 } // namespace onc |
361 } // namespace chromeos | 366 } // namespace chromeos |
OLD | NEW |