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

Unified Diff: chrome/browser/sync/profile_sync_service_autofill_unittest.cc

Issue 12543034: Move creation of the various WebDatabaseTable types out of WebDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows release builds (COMDAT folding combined static functions being used for keys. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/autofill_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_autofill_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
index 8290e04249cbaef4e5b7d96bb55da74f20399bcf..6ffaf1b02888d12816d12250685a554a4b08cae2 100644
--- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
@@ -95,7 +95,7 @@ class HistoryService;
class AutofillTableMock : public AutofillTable {
public:
- AutofillTableMock() : AutofillTable(NULL, NULL) {}
+ AutofillTableMock() : AutofillTable() {}
MOCK_METHOD2(RemoveFormElement,
bool(const string16& name, const string16& value)); // NOLINT
MOCK_METHOD1(GetAllAutofillEntries,
@@ -122,15 +122,9 @@ MATCHER_P(MatchProfiles, profile, "") {
class WebDatabaseFake : public WebDatabase {
public:
- explicit WebDatabaseFake(AutofillTable* autofill_table)
- : autofill_table_(autofill_table) {}
-
- virtual AutofillTable* GetAutofillTable() OVERRIDE {
- return autofill_table_;
+ explicit WebDatabaseFake(AutofillTable* autofill_table) {
+ AddTable(autofill_table);
}
-
- private:
- AutofillTable* autofill_table_;
};
class ProfileSyncServiceAutofillTest;
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/autofill_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698