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_test_utils.h" | 5 #include "chromeos/network/onc/onc_test_utils.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 return ::testing::AssertionFailure() << "Actual dictionary pointer is NULL"; | 71 return ::testing::AssertionFailure() << "Actual dictionary pointer is NULL"; |
72 | 72 |
73 if (expected->Equals(actual)) | 73 if (expected->Equals(actual)) |
74 return ::testing::AssertionSuccess() << "Dictionaries are equal"; | 74 return ::testing::AssertionSuccess() << "Dictionaries are equal"; |
75 | 75 |
76 return ::testing::AssertionFailure() << "Dictionaries are unequal.\n" | 76 return ::testing::AssertionFailure() << "Dictionaries are unequal.\n" |
77 << "Expected dictionary:\n" << *expected | 77 << "Expected dictionary:\n" << *expected |
78 << "Actual dictionary:\n" << *actual; | 78 << "Actual dictionary:\n" << *actual; |
79 } | 79 } |
80 | 80 |
| 81 std::string FakeFingerprintToPEM(const std::string& fingerprint) { |
| 82 return "[fake PEM for " + fingerprint + "]"; |
| 83 } |
| 84 |
81 } // namespace test_utils | 85 } // namespace test_utils |
82 } // namespace onc | 86 } // namespace onc |
83 } // namespace chromeos | 87 } // namespace chromeos |
OLD | NEW |