Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: chrome/browser/password_manager/password_store_unittest.cc

Issue 106053008: [Mac] Passwords: Don't always prompt to access passwords saved by other browsers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix yet another compile failure. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_mac_unittest.cc ('k') | chrome/browser/password_manager/password_store_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698