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

Side by Side Diff: chromeos/network/onc/onc_signature.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_signature.h" 5 #include "chromeos/network/onc/onc_signature.h"
6 6
7 #include "chromeos/network/onc/onc_constants.h" 7 #include "chromeos/network/onc/onc_constants.h"
8 #include "third_party/cros_system_api/dbus/service_constants.h" 8 #include "third_party/cros_system_api/dbus/service_constants.h"
9 9
10 using base::Value; 10 using base::Value;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 { vpn::kHost, &kStringSignature }, 137 { vpn::kHost, &kStringSignature },
138 { vpn::kIPsec, &kIPsecSignature }, 138 { vpn::kIPsec, &kIPsecSignature },
139 { vpn::kL2TP, &kL2TPSignature }, 139 { vpn::kL2TP, &kL2TPSignature },
140 { vpn::kOpenVPN, &kOpenVPNSignature }, 140 { vpn::kOpenVPN, &kOpenVPNSignature },
141 { vpn::kType, &kStringSignature }, 141 { vpn::kType, &kStringSignature },
142 { NULL } 142 { NULL }
143 }; 143 };
144 144
145 const OncFieldSignature ethernet_fields[] = { 145 const OncFieldSignature ethernet_fields[] = {
146 { kRecommended, &kRecommendedSignature }, 146 { kRecommended, &kRecommendedSignature },
147 // Not supported, yet.
148 { ethernet::kAuthentication, &kStringSignature }, 147 { ethernet::kAuthentication, &kStringSignature },
149 { ethernet::kEAP, &kEAPSignature }, 148 { ethernet::kEAP, &kEAPSignature },
150 { NULL } 149 { NULL }
151 }; 150 };
152 151
153 // Not supported, yet. 152 // Not supported, yet.
154 const OncFieldSignature ipconfig_fields[] = { 153 const OncFieldSignature ipconfig_fields[] = {
155 { ipconfig::kGateway, &kStringSignature }, 154 { ipconfig::kGateway, &kStringSignature },
156 { ipconfig::kIPAddress, &kStringSignature }, 155 { ipconfig::kIPAddress, &kStringSignature },
157 { network_config::kNameServers, &kStringSignature }, 156 { network_config::kNameServers, &kStringSignature },
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 if (&signature == entry->value_signature && 429 if (&signature == entry->value_signature &&
431 onc_field_name == entry->field_name) { 430 onc_field_name == entry->field_name) {
432 return true; 431 return true;
433 } 432 }
434 } 433 }
435 return false; 434 return false;
436 } 435 }
437 436
438 } // namespace onc 437 } // namespace onc
439 } // namespace chromeos 438 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/networking/test.js ('k') | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698