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> | 8 #include <string> |
9 | 9 |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chromeos/network/onc/onc_constants.h" | 15 #include "chromeos/network/onc/onc_constants.h" |
16 #include "chromeos/network/onc/onc_signature.h" | 16 #include "chromeos/network/onc/onc_signature.h" |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 namespace onc { | 19 namespace onc { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 std::string ValueToString(const base::Value& value) { | 23 std::string ValueToString(const base::Value& value) { |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 } | 777 } |
778 | 778 |
779 std::string Validator::MessageHeader() { | 779 std::string Validator::MessageHeader() { |
780 std::string path = path_.empty() ? "toplevel" : JoinString(path_, "."); | 780 std::string path = path_.empty() ? "toplevel" : JoinString(path_, "."); |
781 std::string message = "At " + path + ": "; | 781 std::string message = "At " + path + ": "; |
782 return message; | 782 return message; |
783 } | 783 } |
784 | 784 |
785 } // namespace onc | 785 } // namespace onc |
786 } // namespace chromeos | 786 } // namespace chromeos |
OLD | NEW |