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 <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 true), | 537 true), |
538 ExpectBothNotValid("", "")), | 538 ExpectBothNotValid("", "")), |
539 std::make_pair(OncParams("network-wrong-type", | 539 std::make_pair(OncParams("network-wrong-type", |
540 &kNetworkConfigurationSignature, | 540 &kNetworkConfigurationSignature, |
541 false), | 541 false), |
542 ExpectBothNotValid("", "")), | 542 ExpectBothNotValid("", "")), |
543 std::make_pair(OncParams("managed-network-wrong-type", | 543 std::make_pair(OncParams("managed-network-wrong-type", |
544 &kNetworkConfigurationSignature, | 544 &kNetworkConfigurationSignature, |
545 true), | 545 true), |
546 ExpectBothNotValid("", "")), | 546 ExpectBothNotValid("", "")), |
547 std::make_pair(OncParams("network-with-client-cert-pattern", | |
548 &kNetworkConfigurationSignature, | |
549 true, | |
550 ::onc::ONC_SOURCE_DEVICE_POLICY), | |
551 ExpectBothNotValid("", "")), | |
552 std::make_pair(OncParams("openvpn-invalid-verify-x509-type", | 547 std::make_pair(OncParams("openvpn-invalid-verify-x509-type", |
553 &kNetworkConfigurationSignature, | 548 &kNetworkConfigurationSignature, |
554 false), | 549 false), |
555 ExpectBothNotValid("", "")), | 550 ExpectBothNotValid("", "")), |
556 std::make_pair(OncParams("tether-missing-battery-percentage", | 551 std::make_pair(OncParams("tether-missing-battery-percentage", |
557 &kNetworkWithStateSignature, | 552 &kNetworkWithStateSignature, |
558 true), | 553 true), |
559 ExpectBothNotValid("", "")), | 554 ExpectBothNotValid("", "")), |
560 std::make_pair(OncParams("tether-negative-battery", | 555 std::make_pair(OncParams("tether-negative-battery", |
561 &kNetworkWithStateSignature, | 556 &kNetworkWithStateSignature, |
(...skipping 15 matching lines...) Expand all Loading... |
577 &kNetworkWithStateSignature, | 572 &kNetworkWithStateSignature, |
578 true), | 573 true), |
579 ExpectBothNotValid("", "")), | 574 ExpectBothNotValid("", "")), |
580 std::make_pair(OncParams("tether-signal-strength-over-100", | 575 std::make_pair(OncParams("tether-signal-strength-over-100", |
581 &kNetworkWithStateSignature, | 576 &kNetworkWithStateSignature, |
582 true), | 577 true), |
583 ExpectBothNotValid("", "")))); | 578 ExpectBothNotValid("", "")))); |
584 | 579 |
585 } // namespace onc | 580 } // namespace onc |
586 } // namespace chromeos | 581 } // namespace chromeos |
OLD | NEW |