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

Side by Side Diff: chrome/browser/password_manager/password_store_x_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/scoped_temp_dir.h" 6 #include "base/scoped_temp_dir.h"
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 18 matching lines...) Expand all
29 using testing::WithArg; 29 using testing::WithArg;
30 using webkit_glue::PasswordForm; 30 using webkit_glue::PasswordForm;
31 31
32 typedef std::vector<PasswordForm*> VectorOfForms; 32 typedef std::vector<PasswordForm*> VectorOfForms;
33 33
34 namespace { 34 namespace {
35 35
36 class MockPasswordStoreConsumer : public PasswordStoreConsumer { 36 class MockPasswordStoreConsumer : public PasswordStoreConsumer {
37 public: 37 public:
38 MOCK_METHOD2(OnPasswordStoreRequestDone, 38 MOCK_METHOD2(OnPasswordStoreRequestDone,
39 void(int, const std::vector<PasswordForm*>&)); 39 void(PasswordStore::Handle,
40 const std::vector<webkit_glue::PasswordForm*>&));
James Hawkins 2011/03/16 22:39:35 You have a 'using webkit_glue::PasswordForm' right
Sheridan Rawlins 2011/03/20 08:13:11 Done.
40 }; 41 };
41 42
42 class MockWebDataServiceConsumer : public WebDataServiceConsumer { 43 class MockWebDataServiceConsumer : public WebDataServiceConsumer {
43 public: 44 public:
44 MOCK_METHOD2(OnWebDataServiceRequestDone, void(WebDataService::Handle, 45 MOCK_METHOD2(OnWebDataServiceRequestDone, void(WebDataService::Handle,
45 const WDTypedResult*)); 46 const WDTypedResult*));
46 }; 47 };
47 48
48 // This class will add and remove a mock notification observer from 49 // This class will add and remove a mock notification observer from
49 // the DB thread. 50 // the DB thread.
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 734
734 INSTANTIATE_TEST_CASE_P(NoBackend, 735 INSTANTIATE_TEST_CASE_P(NoBackend,
735 PasswordStoreXTest, 736 PasswordStoreXTest,
736 testing::Values(NO_BACKEND)); 737 testing::Values(NO_BACKEND));
737 INSTANTIATE_TEST_CASE_P(FailingBackend, 738 INSTANTIATE_TEST_CASE_P(FailingBackend,
738 PasswordStoreXTest, 739 PasswordStoreXTest,
739 testing::Values(FAILING_BACKEND)); 740 testing::Values(FAILING_BACKEND));
740 INSTANTIATE_TEST_CASE_P(WorkingBackend, 741 INSTANTIATE_TEST_CASE_P(WorkingBackend,
741 PasswordStoreXTest, 742 PasswordStoreXTest,
742 testing::Values(WORKING_BACKEND)); 743 testing::Values(WORKING_BACKEND));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698