| OLD | NEW |
| 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/memory/scoped_temp_dir.h" | 6 #include "base/memory/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 Loading... |
| 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(CancelableRequestProvider::Handle, |
| 40 const std::vector<PasswordForm*>&)); |
| 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 Loading... |
| 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)); |
| OLD | NEW |