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

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: Self review. 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
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 f8072b802e48c4572b5c58fbf39a9bda0c7306a5..d1a2fc51f62a382dbc291fdd2010f80aae0f8469 100644
--- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
@@ -94,7 +94,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') | chrome/browser/webdata/web_database.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698