| 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/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 .WillOnce(DoAll(WithArg<0>(STLDeleteElements0()), QuitUIMessageLoop())); | 252 .WillOnce(DoAll(WithArg<0>(STLDeleteElements0()), QuitUIMessageLoop())); |
| 253 EXPECT_CALL(consumer, | 253 EXPECT_CALL(consumer, |
| 254 OnGetPasswordStoreResults( | 254 OnGetPasswordStoreResults( |
| 255 ContainsAllPasswordForms(accounts_google_expected))) | 255 ContainsAllPasswordForms(accounts_google_expected))) |
| 256 .WillOnce(WithArg<0>(STLDeleteElements0())).RetiresOnSaturation(); | 256 .WillOnce(WithArg<0>(STLDeleteElements0())).RetiresOnSaturation(); |
| 257 EXPECT_CALL(consumer, | 257 EXPECT_CALL(consumer, |
| 258 OnGetPasswordStoreResults( | 258 OnGetPasswordStoreResults( |
| 259 ContainsAllPasswordForms(www_google_expected))) | 259 ContainsAllPasswordForms(www_google_expected))) |
| 260 .WillOnce(WithArg<0>(STLDeleteElements0())).RetiresOnSaturation(); | 260 .WillOnce(WithArg<0>(STLDeleteElements0())).RetiresOnSaturation(); |
| 261 | 261 |
| 262 store->GetLogins(www_google, &consumer); | 262 store->GetLogins(www_google, PasswordStore::ALLOW_PROMPT, &consumer); |
| 263 store->GetLogins(accounts_google, &consumer); | 263 store->GetLogins(accounts_google, PasswordStore::ALLOW_PROMPT, &consumer); |
| 264 store->GetLogins(bar_example, &consumer); | 264 store->GetLogins(bar_example, PasswordStore::ALLOW_PROMPT, &consumer); |
| 265 | 265 |
| 266 base::MessageLoop::current()->Run(); | 266 base::MessageLoop::current()->Run(); |
| 267 | 267 |
| 268 STLDeleteElements(&all_forms); | 268 STLDeleteElements(&all_forms); |
| 269 } | 269 } |
| OLD | NEW |