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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 PasswordFormData data = { | 239 PasswordFormData data = { |
240 PasswordForm::SCHEME_HTML, | 240 PasswordForm::SCHEME_HTML, |
241 realm.c_str(), | 241 realm.c_str(), |
242 origin.c_str(), | 242 origin.c_str(), |
243 action.c_str(), | 243 action.c_str(), |
244 L"submit_element", | 244 L"submit_element", |
245 L"username_element", | 245 L"username_element", |
246 L"password_element", | 246 L"password_element", |
247 autofillable ? L"username_value" : NULL, | 247 autofillable ? L"username_value" : NULL, |
248 autofillable ? L"password_value" : NULL, | 248 autofillable ? L"password_value" : NULL, |
249 autofillable, false, i + 1 }; | 249 autofillable, false, static_cast<double>(i + 1) }; |
250 forms->push_back(CreatePasswordFormFromData(data)); | 250 forms->push_back(CreatePasswordFormFromData(data)); |
251 } | 251 } |
252 } | 252 } |
253 | 253 |
254 } // anonymous namespace | 254 } // anonymous namespace |
255 | 255 |
256 enum BackendType { | 256 enum BackendType { |
257 NO_BACKEND, | 257 NO_BACKEND, |
258 FAILING_BACKEND, | 258 FAILING_BACKEND, |
259 WORKING_BACKEND | 259 WORKING_BACKEND |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 540 |
541 INSTANTIATE_TEST_CASE_P(NoBackend, | 541 INSTANTIATE_TEST_CASE_P(NoBackend, |
542 PasswordStoreXTest, | 542 PasswordStoreXTest, |
543 testing::Values(NO_BACKEND)); | 543 testing::Values(NO_BACKEND)); |
544 INSTANTIATE_TEST_CASE_P(FailingBackend, | 544 INSTANTIATE_TEST_CASE_P(FailingBackend, |
545 PasswordStoreXTest, | 545 PasswordStoreXTest, |
546 testing::Values(FAILING_BACKEND)); | 546 testing::Values(FAILING_BACKEND)); |
547 INSTANTIATE_TEST_CASE_P(WorkingBackend, | 547 INSTANTIATE_TEST_CASE_P(WorkingBackend, |
548 PasswordStoreXTest, | 548 PasswordStoreXTest, |
549 testing::Values(WORKING_BACKEND)); | 549 testing::Values(WORKING_BACKEND)); |
OLD | NEW |