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

Unified Diff: chrome/browser/webdata/web_data_service_unittest.cc

Issue 12987023: Rip autofill code out of webdataservice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change method name in AutofillTable 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 | « chrome/browser/webdata/web_data_service_test_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/web_data_service_unittest.cc
diff --git a/chrome/browser/webdata/web_data_service_unittest.cc b/chrome/browser/webdata/web_data_service_unittest.cc
index 5ca1b949eb34b24286a860964d8efee04cab3a9c..46c152096b0999f605f6aed7b930d5e470568e32 100644
--- a/chrome/browser/webdata/web_data_service_unittest.cc
+++ b/chrome/browser/webdata/web_data_service_unittest.cc
@@ -20,7 +20,7 @@
#include "chrome/browser/webdata/autofill_change.h"
#include "chrome/browser/webdata/autofill_entry.h"
#include "chrome/browser/webdata/autofill_table.h"
-#include "chrome/browser/webdata/web_data_service.h"
+#include "chrome/browser/webdata/autofill_web_data_service_impl.h"
#include "chrome/browser/webdata/web_data_service_test_util.h"
#include "chrome/browser/webdata/web_database_service.h"
#include "chrome/common/chrome_notification_types.h"
@@ -83,7 +83,7 @@ class WebDataServiceTest : public testing::Test {
wdbs_->AddTable(scoped_ptr<WebDatabaseTable>(new AutofillTable()));
wdbs_->LoadDatabase(WebDatabaseService::InitCallback());
- wds_ = new WebDataService(wdbs_,
+ wds_ = new AutofillWebDataServiceImpl(wdbs_,
WebDataServiceBase::ProfileErrorCallback());
wds_->Init();
}
@@ -113,7 +113,7 @@ class WebDataServiceTest : public testing::Test {
content::TestBrowserThread ui_thread_;
content::TestBrowserThread db_thread_;
base::FilePath profile_dir_;
- scoped_refptr<WebDataService> wds_;
+ scoped_refptr<AutofillWebDataService> wds_;
scoped_refptr<WebDatabaseService> wdbs_;
base::ScopedTempDir temp_dir_;
};
@@ -201,7 +201,7 @@ TEST_F(WebDataServiceAutofillTest, FormFillAdd) {
EXPECT_CALL(
*observer_helper_->observer(),
Observe(int(chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED),
- content::Source<WebDataService>(wds_.get()),
+ content::Source<AutofillWebDataService>(wds_.get()),
Property(&content::Details<const AutofillChangeList>::ptr,
Pointee(ElementsAreArray(expected_changes))))).
WillOnce(SignalEvent(&done_event_));
@@ -247,7 +247,7 @@ TEST_F(WebDataServiceAutofillTest, FormFillRemoveOne) {
EXPECT_CALL(
*observer_helper_->observer(),
Observe(int(chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED),
- content::Source<WebDataService>(wds_.get()),
+ content::Source<AutofillWebDataService>(wds_.get()),
Property(&content::Details<const AutofillChangeList>::ptr,
Pointee(ElementsAreArray(expected_changes))))).
WillOnce(SignalEvent(&done_event_));
@@ -280,7 +280,7 @@ TEST_F(WebDataServiceAutofillTest, FormFillRemoveMany) {
EXPECT_CALL(
*observer_helper_->observer(),
Observe(int(chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED),
- content::Source<WebDataService>(wds_.get()),
+ content::Source<AutofillWebDataService>(wds_.get()),
Property(&content::Details<const AutofillChangeList>::ptr,
Pointee(ElementsAreArray(expected_changes))))).
WillOnce(SignalEvent(&done_event_));
@@ -299,7 +299,7 @@ TEST_F(WebDataServiceAutofillTest, ProfileAdd) {
EXPECT_CALL(
*observer_helper_->observer(),
Observe(int(chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED),
- content::Source<WebDataService>(wds_.get()),
+ content::Source<AutofillWebDataService>(wds_.get()),
Property(&content::Details<const AutofillProfileChange>::ptr,
Pointee(expected_change)))).
WillOnce(SignalEvent(&done_event_));
@@ -342,7 +342,7 @@ TEST_F(WebDataServiceAutofillTest, ProfileRemove) {
EXPECT_CALL(
*observer_helper_->observer(),
Observe(int(chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED),
- content::Source<WebDataService>(wds_.get()),
+ content::Source<AutofillWebDataService>(wds_.get()),
Property(&content::Details<const AutofillProfileChange>::ptr,
Pointee(expected_change)))).
WillOnce(SignalEvent(&done_event_));
@@ -390,7 +390,7 @@ TEST_F(WebDataServiceAutofillTest, ProfileUpdate) {
EXPECT_CALL(
*observer_helper_->observer(),
Observe(int(chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED),
- content::Source<WebDataService>(wds_.get()),
+ content::Source<AutofillWebDataService>(wds_.get()),
Property(&content::Details<const AutofillProfileChange>::ptr,
Pointee(expected_change)))).
WillOnce(SignalEvent(&done_event_));
@@ -531,13 +531,13 @@ TEST_F(WebDataServiceAutofillTest, AutofillRemoveModifiedBetween) {
EXPECT_CALL(
*observer_helper_->observer(),
Observe(int(chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED),
- content::Source<WebDataService>(wds_.get()),
+ content::Source<AutofillWebDataService>(wds_.get()),
Property(&content::Details<const AutofillProfileChange>::ptr,
Pointee(expected_profile_change)))).
WillOnce(SignalEvent(&done_event_));
// Remove the profile using time range of "all time".
- wds_->RemoveAutofillProfilesAndCreditCardsModifiedBetween(Time(), Time());
+ wds_->RemoveAutofillDataModifiedBetween(Time(), Time());
done_event_.TimedWait(test_timeout_);
WaitForDatabaseThread();
« no previous file with comments | « chrome/browser/webdata/web_data_service_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698