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

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

Issue 61903002: ChromeOS: Add more host verification options for OpenVpn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // configuration. 285 // configuration.
286 std::make_pair(OncParams("network-state-field", 286 std::make_pair(OncParams("network-state-field",
287 &kNetworkConfigurationSignature, 287 &kNetworkConfigurationSignature,
288 false), 288 false),
289 RepairParams("", "network-repaired")), 289 RepairParams("", "network-repaired")),
290 std::make_pair(OncParams("network-nested-state-field", 290 std::make_pair(OncParams("network-nested-state-field",
291 &kNetworkConfigurationSignature, 291 &kNetworkConfigurationSignature,
292 false), 292 false),
293 RepairParams("", 293 RepairParams("",
294 "network-nested-state-field-repaired")), 294 "network-nested-state-field-repaired")),
295 std::make_pair(OncParams("openvpn-missing-verify-x509-type",
296 &kNetworkConfigurationSignature, false),
297 RepairParams("", "openvpn-missing-verify-x509-type")),
295 std::make_pair(OncParams("toplevel-with-repairable-networks", 298 std::make_pair(OncParams("toplevel-with-repairable-networks",
296 &kToplevelConfigurationSignature, 299 &kToplevelConfigurationSignature,
297 false, 300 false,
298 ::onc::ONC_SOURCE_DEVICE_POLICY), 301 ::onc::ONC_SOURCE_DEVICE_POLICY),
299 RepairParams("", "toplevel-with-repaired-networks")))); 302 RepairParams("", "toplevel-with-repaired-networks"))));
300 303
301 // Strict and liberal validator repair identically. 304 // Strict and liberal validator repair identically.
302 INSTANTIATE_TEST_CASE_P( 305 INSTANTIATE_TEST_CASE_P(
303 StrictAndLiberalRepairIdentically, 306 StrictAndLiberalRepairIdentically,
304 ONCValidatorTestRepairable, 307 ONCValidatorTestRepairable,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 std::make_pair(OncParams("managed-network-wrong-type", 366 std::make_pair(OncParams("managed-network-wrong-type",
364 &kNetworkConfigurationSignature, true), 367 &kNetworkConfigurationSignature, true),
365 RepairParams("", "")), 368 RepairParams("", "")),
366 std::make_pair(OncParams("network-with-client-cert-pattern", 369 std::make_pair(OncParams("network-with-client-cert-pattern",
367 &kNetworkConfigurationSignature, true, 370 &kNetworkConfigurationSignature, true,
368 ::onc::ONC_SOURCE_DEVICE_POLICY), 371 ::onc::ONC_SOURCE_DEVICE_POLICY),
369 RepairParams("", "")))); 372 RepairParams("", ""))));
370 373
371 } // namespace onc 374 } // namespace onc
372 } // namespace chromeos 375 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698