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/cryptohome/cryptohome_library.h" | 5 #include "chromeos/cryptohome/cryptohome_library.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/chromeos/chromeos_version.h" | 10 #include "base/chromeos/chromeos_version.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/string_util.h" | |
13 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_util.h" |
14 #include "chromeos/dbus/cryptohome_client.h" | 14 #include "chromeos/dbus/cryptohome_client.h" |
15 #include "chromeos/dbus/dbus_thread_manager.h" | 15 #include "chromeos/dbus/dbus_thread_manager.h" |
16 #include "crypto/encryptor.h" | 16 #include "crypto/encryptor.h" |
17 #include "crypto/nss_util.h" | 17 #include "crypto/nss_util.h" |
18 #include "crypto/sha2.h" | 18 #include "crypto/sha2.h" |
19 #include "crypto/symmetric_key.h" | 19 #include "crypto/symmetric_key.h" |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 namespace { | 23 namespace { |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 CHECK(!g_test_cryptohome_library || !impl); | 346 CHECK(!g_test_cryptohome_library || !impl); |
347 g_test_cryptohome_library = impl; | 347 g_test_cryptohome_library = impl; |
348 } | 348 } |
349 | 349 |
350 // static | 350 // static |
351 CryptohomeLibrary* CryptohomeLibrary::GetTestImpl() { | 351 CryptohomeLibrary* CryptohomeLibrary::GetTestImpl() { |
352 return new CryptohomeLibraryStubImpl(); | 352 return new CryptohomeLibraryStubImpl(); |
353 } | 353 } |
354 | 354 |
355 } // namespace chromeos | 355 } // namespace chromeos |
OLD | NEW |