| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" | 5 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 | 10 |
| 9 #include "base/callback.h" | 11 #include "base/callback.h" |
| 10 #include "base/md5.h" | 12 #include "base/md5.h" |
| 11 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 12 | 14 |
| 13 namespace proximity_auth { | 15 namespace proximity_auth { |
| 14 | 16 |
| 15 namespace { | 17 namespace { |
| 16 | 18 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 callback.Run(false, std::string(), securemessage::Header()); | 191 callback.Run(false, std::string(), securemessage::Header()); |
| 190 } | 192 } |
| 191 } | 193 } |
| 192 | 194 |
| 193 std::string FakeSecureMessageDelegate::GetPrivateKeyForPublicKey( | 195 std::string FakeSecureMessageDelegate::GetPrivateKeyForPublicKey( |
| 194 const std::string& public_key) { | 196 const std::string& public_key) { |
| 195 return kPrivateKeyPrefix + public_key; | 197 return kPrivateKeyPrefix + public_key; |
| 196 } | 198 } |
| 197 | 199 |
| 198 } // namespace proximity_auth | 200 } // namespace proximity_auth |
| OLD | NEW |