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 CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_TEST_UTIL_H__ | 5 #ifndef COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_TEST_UTIL_H__ |
6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_TEST_UTIL_H__ | 6 #define COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_TEST_UTIL_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "chrome/browser/webdata/web_data_service.h" | 10 #include "chrome/browser/webdata/web_data_service.h" |
11 #include "chrome/browser/webdata/web_data_service_factory.h" | 11 #include "chrome/browser/webdata/web_data_service_factory.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 | 13 |
14 template <class T> | 14 template <class T> |
15 class AutofillWebDataServiceConsumer: public WebDataServiceConsumer { | 15 class AutofillWebDataServiceConsumer: public WebDataServiceConsumer { |
16 public: | 16 public: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual scoped_refptr<WebDataService> GetWebData() OVERRIDE; | 66 virtual scoped_refptr<WebDataService> GetWebData() OVERRIDE; |
67 | 67 |
68 protected: | 68 protected: |
69 scoped_refptr<AutofillWebDataService> fake_autofill_web_data_; | 69 scoped_refptr<AutofillWebDataService> fake_autofill_web_data_; |
70 scoped_refptr<WebDataService> fake_web_data_; | 70 scoped_refptr<WebDataService> fake_web_data_; |
71 | 71 |
72 private: | 72 private: |
73 DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapper); | 73 DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapper); |
74 }; | 74 }; |
75 | 75 |
76 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_TEST_UTIL_H__ | 76 #endif // COMPONENTS_WEBDATA_COMMON_WEB_DATA_SERVICE_TEST_UTIL_H__ |
OLD | NEW |