| 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 #ifndef COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_TEST_UTIL_H__ | 5 #ifndef COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_TEST_UTIL_H__ |
| 6 #define COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_TEST_UTIL_H__ | 6 #define COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_TEST_UTIL_H__ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "components/signin/core/browser/webdata/token_web_data.h" | 10 #include "components/signin/core/browser/webdata/token_web_data.h" |
| 11 #include "components/webdata_services/web_data_service_wrapper.h" | 11 #include "components/webdata_services/web_data_service_wrapper.h" |
| 12 | 12 |
| 13 // Base class for mocks of WebDataService, that does nothing in | 13 // Base class for mocks of WebDataService, that does nothing in |
| 14 // Shutdown(). | 14 // Shutdown(). |
| 15 class MockWebDataServiceWrapperBase : public WebDataServiceWrapper { | 15 class MockWebDataServiceWrapperBase : public WebDataServiceWrapper { |
| 16 public: | 16 public: |
| 17 MockWebDataServiceWrapperBase(); | 17 MockWebDataServiceWrapperBase(); |
| 18 ~MockWebDataServiceWrapperBase() override; | 18 ~MockWebDataServiceWrapperBase() override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 scoped_refptr<autofill::AutofillWebDataService> fake_autofill_web_data_; | 41 scoped_refptr<autofill::AutofillWebDataService> fake_autofill_web_data_; |
| 42 scoped_refptr<TokenWebData> fake_token_web_data_; | 42 scoped_refptr<TokenWebData> fake_token_web_data_; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapper); | 45 DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapper); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_TEST_UTIL_H__ | 48 #endif // COMPONENTS_WEBDATA_SERVICES_WEB_DATA_SERVICE_TEST_UTIL_H__ |
| OLD | NEW |