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

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

Issue 23506040: Add ethernet to ONC validation and Shill translation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed networkingPrivate api test on non-chromeos. Created 7 years, 3 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 | 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 ONC_SOURCE_DEVICE_POLICY), 147 ONC_SOURCE_DEVICE_POLICY),
148 OncParams("toplevel_wifi_wpa_psk.onc", 148 OncParams("toplevel_wifi_wpa_psk.onc",
149 &kToplevelConfigurationSignature, 149 &kToplevelConfigurationSignature,
150 false), 150 false),
151 OncParams("encrypted.onc", 151 OncParams("encrypted.onc",
152 &kToplevelConfigurationSignature, 152 &kToplevelConfigurationSignature,
153 true), 153 true),
154 OncParams("managed_vpn.onc", 154 OncParams("managed_vpn.onc",
155 &kNetworkConfigurationSignature, 155 &kNetworkConfigurationSignature,
156 true), 156 true),
157 OncParams("managed_ethernet.onc", 157 OncParams("ethernet.onc",
158 &kNetworkConfigurationSignature,
159 true),
160 OncParams("ethernet_with_eap.onc",
158 &kNetworkConfigurationSignature, 161 &kNetworkConfigurationSignature,
159 true), 162 true),
160 OncParams("translation_of_shill_wifi_with_state.onc", 163 OncParams("translation_of_shill_wifi_with_state.onc",
161 &kNetworkWithStateSignature, 164 &kNetworkWithStateSignature,
162 false))); 165 false)));
163 166
164 namespace { 167 namespace {
165 168
166 struct RepairParams { 169 struct RepairParams {
167 // Both arguments are strings to identify the object that is expected as the 170 // Both arguments are strings to identify the object that is expected as the
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 std::make_pair(OncParams("managed-network-wrong-type", 360 std::make_pair(OncParams("managed-network-wrong-type",
358 &kNetworkConfigurationSignature, true), 361 &kNetworkConfigurationSignature, true),
359 RepairParams("", "")), 362 RepairParams("", "")),
360 std::make_pair(OncParams("network-with-client-cert-pattern", 363 std::make_pair(OncParams("network-with-client-cert-pattern",
361 &kNetworkConfigurationSignature, true, 364 &kNetworkConfigurationSignature, true,
362 ONC_SOURCE_DEVICE_POLICY), 365 ONC_SOURCE_DEVICE_POLICY),
363 RepairParams("", "")))); 366 RepairParams("", ""))));
364 367
365 } // namespace onc 368 } // namespace onc
366 } // namespace chromeos 369 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_translator_unittest.cc ('k') | chromeos/test/data/network/ethernet.onc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698