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 <algorithm> | 7 #include <algorithm> |
8 #include <string> | |
9 | 8 |
10 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
14 #include "base/values.h" | 13 #include "base/values.h" |
15 #include "chromeos/network/onc/onc_signature.h" | 14 #include "chromeos/network/onc/onc_signature.h" |
16 #include "components/onc/onc_constants.h" | |
17 | 15 |
18 namespace chromeos { | 16 namespace chromeos { |
19 namespace onc { | 17 namespace onc { |
20 | 18 |
21 namespace { | 19 namespace { |
22 | 20 |
23 // According to the IEEE 802.11 standard the SSID is a series of 0 to 32 octets. | 21 // According to the IEEE 802.11 standard the SSID is a series of 0 to 32 octets. |
24 const int kMaximumSSIDLengthInBytes = 32; | 22 const int kMaximumSSIDLengthInBytes = 32; |
25 | 23 |
26 template <typename T, size_t N> | 24 template <typename T, size_t N> |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 } | 934 } |
937 | 935 |
938 std::string Validator::MessageHeader() { | 936 std::string Validator::MessageHeader() { |
939 std::string path = path_.empty() ? "toplevel" : JoinString(path_, "."); | 937 std::string path = path_.empty() ? "toplevel" : JoinString(path_, "."); |
940 std::string message = "At " + path + ": "; | 938 std::string message = "At " + path + ": "; |
941 return message; | 939 return message; |
942 } | 940 } |
943 | 941 |
944 } // namespace onc | 942 } // namespace onc |
945 } // namespace chromeos | 943 } // namespace chromeos |
OLD | NEW |