Chromium Code Reviews| Index: chrome/utility/importer/firefox_importer_unittest_utils.h |
| diff --git a/chrome/utility/importer/firefox_importer_unittest_utils.h b/chrome/utility/importer/firefox_importer_unittest_utils.h |
| index 2c20991629b8620b85ec0e6a19ee38582b0d095a..601c18632751618323eb7c3dfecf5e7653b7736a 100644 |
| --- a/chrome/utility/importer/firefox_importer_unittest_utils.h |
| +++ b/chrome/utility/importer/firefox_importer_unittest_utils.h |
| @@ -6,9 +6,11 @@ |
| #define CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_UNITTEST_UTILS_H_ |
| #include "base/basictypes.h" |
| +#include "base/file_util.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "base/process/process_handle.h" |
| #include "chrome/utility/importer/nss_decryptor.h" |
| +#include "components/autofill/core/common/password_form.h" |
| class FFDecryptorServerChannelListener; |
| @@ -44,6 +46,8 @@ class FFUnitTestDecryptorProxy { |
| bool DecryptorInit(const base::FilePath& dll_path, |
| const base::FilePath& db_path); |
| base::string16 Decrypt(const std::string& crypt); |
| + std::vector<autofill::PasswordForm> ParseSignons( |
| + const base::FilePath& signons_path); |
| private: |
| #if defined(OS_MACOSX) |
| @@ -84,6 +88,16 @@ bool FFUnitTestDecryptorProxy::DecryptorInit(const base::FilePath& dll_path, |
| base::string16 FFUnitTestDecryptorProxy::Decrypt(const std::string& crypt) { |
| return decryptor_.Decrypt(crypt); |
| } |
| + |
| +std::vector<autofill::PasswordForm> FFUnitTestDecryptorProxy::ParseSignons( |
| + const base::FilePath& signons_path) { |
| + std::vector<autofill::PasswordForm> out_vec; |
|
Ilya Sherman
2014/06/13 21:57:03
nit: Please avoid abbreviations in variable names.
|
| + if (decryptor_.ReadAndParseSignons(signons_path, &out_vec)) |
| + return out_vec; |
| + |
| + return std::vector<autofill::PasswordForm>(); |
| +} |
| + |
| #endif // !OS_MACOSX |
| #endif // CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_UNITTEST_UTILS_H_ |