| OLD | NEW |
| 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/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 21 matching lines...) Expand all Loading... |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| 33 | 33 |
| 34 using base::WaitableEvent; | 34 using base::WaitableEvent; |
| 35 using content::BrowserThread; | 35 using content::BrowserThread; |
| 36 using testing::_; | 36 using testing::_; |
| 37 using testing::DoAll; | 37 using testing::DoAll; |
| 38 using testing::ElementsAreArray; | 38 using testing::ElementsAreArray; |
| 39 using testing::Pointee; | 39 using testing::Pointee; |
| 40 using testing::Property; | 40 using testing::Property; |
| 41 using testing::WithArg; | 41 using testing::WithArg; |
| 42 using webkit::forms::PasswordForm; | 42 using content::PasswordForm; |
| 43 | 43 |
| 44 typedef std::vector<PasswordForm*> VectorOfForms; | 44 typedef std::vector<PasswordForm*> VectorOfForms; |
| 45 | 45 |
| 46 namespace { | 46 namespace { |
| 47 | 47 |
| 48 class MockPasswordStoreConsumer : public PasswordStoreConsumer { | 48 class MockPasswordStoreConsumer : public PasswordStoreConsumer { |
| 49 public: | 49 public: |
| 50 MOCK_METHOD2(OnPasswordStoreRequestDone, | 50 MOCK_METHOD2(OnPasswordStoreRequestDone, |
| 51 void(CancelableRequestProvider::Handle, | 51 void(CancelableRequestProvider::Handle, |
| 52 const std::vector<PasswordForm*>&)); | 52 const std::vector<PasswordForm*>&)); |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 | 538 |
| 539 INSTANTIATE_TEST_CASE_P(NoBackend, | 539 INSTANTIATE_TEST_CASE_P(NoBackend, |
| 540 PasswordStoreXTest, | 540 PasswordStoreXTest, |
| 541 testing::Values(NO_BACKEND)); | 541 testing::Values(NO_BACKEND)); |
| 542 INSTANTIATE_TEST_CASE_P(FailingBackend, | 542 INSTANTIATE_TEST_CASE_P(FailingBackend, |
| 543 PasswordStoreXTest, | 543 PasswordStoreXTest, |
| 544 testing::Values(FAILING_BACKEND)); | 544 testing::Values(FAILING_BACKEND)); |
| 545 INSTANTIATE_TEST_CASE_P(WorkingBackend, | 545 INSTANTIATE_TEST_CASE_P(WorkingBackend, |
| 546 PasswordStoreXTest, | 546 PasswordStoreXTest, |
| 547 testing::Values(WORKING_BACKEND)); | 547 testing::Values(WORKING_BACKEND)); |
| OLD | NEW |