| 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/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
| 10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/include/gtest/gtest.h" |
| 34 | 34 |
| 35 using base::WaitableEvent; | 35 using base::WaitableEvent; |
| 36 using content::BrowserThread; | 36 using content::BrowserThread; |
| 37 using testing::_; | 37 using testing::_; |
| 38 using testing::DoAll; | 38 using testing::DoAll; |
| 39 using testing::ElementsAreArray; | 39 using testing::ElementsAreArray; |
| 40 using testing::Pointee; | 40 using testing::Pointee; |
| 41 using testing::Property; | 41 using testing::Property; |
| 42 using testing::WithArg; | 42 using testing::WithArg; |
| 43 using webkit_glue::PasswordForm; | 43 using webkit::forms::PasswordForm; |
| 44 | 44 |
| 45 typedef std::vector<PasswordForm*> VectorOfForms; | 45 typedef std::vector<PasswordForm*> VectorOfForms; |
| 46 | 46 |
| 47 namespace { | 47 namespace { |
| 48 | 48 |
| 49 class MockPasswordStoreConsumer : public PasswordStoreConsumer { | 49 class MockPasswordStoreConsumer : public PasswordStoreConsumer { |
| 50 public: | 50 public: |
| 51 MOCK_METHOD2(OnPasswordStoreRequestDone, | 51 MOCK_METHOD2(OnPasswordStoreRequestDone, |
| 52 void(CancelableRequestProvider::Handle, | 52 void(CancelableRequestProvider::Handle, |
| 53 const std::vector<PasswordForm*>&)); | 53 const std::vector<PasswordForm*>&)); |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 | 756 |
| 757 INSTANTIATE_TEST_CASE_P(NoBackend, | 757 INSTANTIATE_TEST_CASE_P(NoBackend, |
| 758 PasswordStoreXTest, | 758 PasswordStoreXTest, |
| 759 testing::Values(NO_BACKEND)); | 759 testing::Values(NO_BACKEND)); |
| 760 INSTANTIATE_TEST_CASE_P(FailingBackend, | 760 INSTANTIATE_TEST_CASE_P(FailingBackend, |
| 761 PasswordStoreXTest, | 761 PasswordStoreXTest, |
| 762 testing::Values(FAILING_BACKEND)); | 762 testing::Values(FAILING_BACKEND)); |
| 763 INSTANTIATE_TEST_CASE_P(WorkingBackend, | 763 INSTANTIATE_TEST_CASE_P(WorkingBackend, |
| 764 PasswordStoreXTest, | 764 PasswordStoreXTest, |
| 765 testing::Values(WORKING_BACKEND)); | 765 testing::Values(WORKING_BACKEND)); |
| OLD | NEW |