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

Side by Side Diff: chromeos/network/onc/onc_validator_unittest.cc

Issue 2828713002: Enable client certificate patterns in device ONC policy (Closed)
Patch Set: Addressed comments - more DCHECKs, use PostTask..WithReply in client_cert_resolver.cc. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_validator.cc ('k') | chromeos/test/data/network/invalid_settings_with_repairs.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698