OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_UNITTEST_UTILS_H_ | 5 #ifndef CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_UNITTEST_UTILS_H_ |
6 #define CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_UNITTEST_UTILS_H_ | 6 #define CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_UNITTEST_UTILS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/process/process.h" | 11 #include "base/process/process.h" |
| 12 #include "build/build_config.h" |
12 #include "chrome/utility/importer/nss_decryptor.h" | 13 #include "chrome/utility/importer/nss_decryptor.h" |
13 #include "components/autofill/core/common/password_form.h" | 14 #include "components/autofill/core/common/password_form.h" |
14 | 15 |
15 class FFDecryptorServerChannelListener; | 16 class FFDecryptorServerChannelListener; |
16 | 17 |
17 namespace base { | 18 namespace base { |
18 class MessageLoopForIO; | 19 class MessageLoopForIO; |
19 } | 20 } |
20 | 21 |
21 namespace IPC { | 22 namespace IPC { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 std::vector<autofill::PasswordForm> signons; | 95 std::vector<autofill::PasswordForm> signons; |
95 if (decryptor_.ReadAndParseSignons(signons_path, &signons)) | 96 if (decryptor_.ReadAndParseSignons(signons_path, &signons)) |
96 return signons; | 97 return signons; |
97 | 98 |
98 return std::vector<autofill::PasswordForm>(); | 99 return std::vector<autofill::PasswordForm>(); |
99 } | 100 } |
100 | 101 |
101 #endif // !OS_MACOSX | 102 #endif // !OS_MACOSX |
102 | 103 |
103 #endif // CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_UNITTEST_UTILS_H_ | 104 #endif // CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_UNITTEST_UTILS_H_ |
OLD | NEW |