| OLD | NEW |
| 1 // Copyright (c) 2010 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 <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" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |