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

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

Issue 6646051: Fix DCHECK, memory leak, and refactor PasswordStore to use CancelableRequest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try works all platforms now. Created 9 years, 9 months 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include <wincrypt.h> 6 #include <wincrypt.h>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 17 matching lines...) Expand all
28 using testing::_; 28 using testing::_;
29 using testing::DoAll; 29 using testing::DoAll;
30 using testing::WithArg; 30 using testing::WithArg;
31 using webkit_glue::PasswordForm; 31 using webkit_glue::PasswordForm;
32 32
33 namespace { 33 namespace {
34 34
35 class MockPasswordStoreConsumer : public PasswordStoreConsumer { 35 class MockPasswordStoreConsumer : public PasswordStoreConsumer {
36 public: 36 public:
37 MOCK_METHOD2(OnPasswordStoreRequestDone, 37 MOCK_METHOD2(OnPasswordStoreRequestDone,
38 void(int, const std::vector<webkit_glue::PasswordForm*>&)); 38 void(PasswordStore::Handle,
39 const std::vector<webkit_glue::PasswordForm*>&));
39 }; 40 };
40 41
41 class MockWebDataServiceConsumer : public WebDataServiceConsumer { 42 class MockWebDataServiceConsumer : public WebDataServiceConsumer {
42 public: 43 public:
43 MOCK_METHOD2(OnWebDataServiceRequestDone, 44 MOCK_METHOD2(OnWebDataServiceRequestDone,
44 void(WebDataService::Handle, const WDTypedResult*)); 45 void(WebDataService::Handle, const WDTypedResult*));
45 }; 46 };
46 47
47 } // anonymous namespace 48 } // anonymous namespace
48 49
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, 497 BrowserThread::PostTask(BrowserThread::DB, FROM_HERE,
497 new SignalingTask(&done)); 498 new SignalingTask(&done));
498 done.Wait(); 499 done.Wait();
499 500
500 // Handle the callback from the WDS. 501 // Handle the callback from the WDS.
501 MessageLoop::current()->RunAllPending(); 502 MessageLoop::current()->RunAllPending();
502 503
503 STLDeleteElements(&expected_autofillable); 504 STLDeleteElements(&expected_autofillable);
504 STLDeleteElements(&expected_blacklisted); 505 STLDeleteElements(&expected_blacklisted);
505 } 506 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698