| 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 <windows.h> | 5 #include <windows.h> |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 15 #include "base/prefs/pref_service.h" | 16 #include "base/prefs/pref_service.h" |
| 16 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
| 17 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
| 18 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
| 19 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 20 #include "chrome/browser/password_manager/password_store_win.h" | 21 #include "chrome/browser/password_manager/password_store_win.h" |
| 21 #include "chrome/test/base/testing_profile.h" | 22 #include "chrome/test/base/testing_profile.h" |
| 22 #include "components/os_crypt/ie7_password_win.h" | 23 #include "components/os_crypt/ie7_password_win.h" |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 | 423 |
| 423 // Make sure we quit the MessageLoop even if the test fails. | 424 // Make sure we quit the MessageLoop even if the test fails. |
| 424 ON_CALL(consumer, OnGetPasswordStoreResultsConstRef(_)) | 425 ON_CALL(consumer, OnGetPasswordStoreResultsConstRef(_)) |
| 425 .WillByDefault(QuitUIMessageLoop()); | 426 .WillByDefault(QuitUIMessageLoop()); |
| 426 | 427 |
| 427 EXPECT_CALL(consumer, OnGetPasswordStoreResultsConstRef(IsEmpty())); | 428 EXPECT_CALL(consumer, OnGetPasswordStoreResultsConstRef(IsEmpty())); |
| 428 | 429 |
| 429 store_->GetAutofillableLogins(&consumer); | 430 store_->GetAutofillableLogins(&consumer); |
| 430 base::MessageLoop::current()->Run(); | 431 base::MessageLoop::current()->Run(); |
| 431 } | 432 } |
| OLD | NEW |