Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: chrome/browser/webdata/web_data_service_test_util.h

Issue 12695015: Split Autofill webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert all Autofill/Sync clients of WDS to using AutofillWDS Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_TEST_UTIL_H__
6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_TEST_UTIL_H__ 6 #define CHROME_BROWSER_WEBDATA_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"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void Shutdown() OVERRIDE; 48 virtual void Shutdown() OVERRIDE;
49 49
50 private: 50 private:
51 DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapperBase); 51 DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapperBase);
52 }; 52 };
53 53
54 // Pass your fake WebDataService in the constructor and this will 54 // Pass your fake WebDataService in the constructor and this will
55 // serve it up via GetWebData(). 55 // serve it up via GetWebData().
56 class MockWebDataServiceWrapper : public MockWebDataServiceWrapperBase { 56 class MockWebDataServiceWrapper : public MockWebDataServiceWrapperBase {
57 public: 57 public:
58 MockWebDataServiceWrapper(scoped_refptr<WebDataService> fake_service); 58 MockWebDataServiceWrapper(
59 scoped_refptr<WebDataService> fake_service,
60 scoped_refptr<AutofillWebDataService> fake_autofill);
59 virtual ~MockWebDataServiceWrapper(); 61 virtual ~MockWebDataServiceWrapper();
60 62
61 virtual scoped_refptr<WebDataService> GetWebData() OVERRIDE; 63 virtual scoped_refptr<WebDataService> GetWebData() OVERRIDE;
62 64
65 virtual scoped_refptr<AutofillWebDataService> GetAutofillWebData() OVERRIDE;
Jói 2013/03/20 23:09:10 nit: Move above GetWebData for alphabetical order?
Cait (Slow) 2013/03/21 23:23:27 Done.
66
63 protected: 67 protected:
64 scoped_refptr<WebDataService> fake_web_data_service_; 68 scoped_refptr<WebDataService> fake_web_data_service_;
69 scoped_refptr<AutofillWebDataService> fake_autofill_web_data_;
Jói 2013/03/20 23:09:10 nit: Move line up for alphabetical order?
Cait (Slow) 2013/03/21 23:23:27 Done.
65 70
66 private: 71 private:
67 DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapper); 72 DISALLOW_COPY_AND_ASSIGN(MockWebDataServiceWrapper);
68 }; 73 };
69 74
70 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_TEST_UTIL_H__ 75 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_TEST_UTIL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698