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 "rlz/lib/machine_id.h" | 5 #include "rlz/lib/machine_id.h" |
6 | 6 |
7 #include "base/sha1.h" | 7 #include "base/sha1.h" |
8 #include "rlz/lib/assert.h" | 8 #include "rlz/lib/assert.h" |
9 #include "rlz/lib/crc8.h" | 9 #include "rlz/lib/crc8.h" |
10 #include "rlz/lib/string_utils.h" | 10 #include "rlz/lib/string_utils.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 kSizeWithoutChecksum, | 75 kSizeWithoutChecksum, |
76 &id_binary[kSizeWithoutChecksum]); | 76 &id_binary[kSizeWithoutChecksum]); |
77 | 77 |
78 return rlz_lib::BytesToString( | 78 return rlz_lib::BytesToString( |
79 id_binary.c_str(), kSizeWithoutChecksum + 1, machine_id); | 79 id_binary.c_str(), kSizeWithoutChecksum + 1, machine_id); |
80 } | 80 } |
81 | 81 |
82 } // namespace testing | 82 } // namespace testing |
83 | 83 |
84 } // namespace rlz_lib | 84 } // namespace rlz_lib |
OLD | NEW |