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

Unified Diff: chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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/glue/autofill_data_type_controller_unittest.cc
diff --git a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
index 9700e10de3c06a22986710227fd8d5137449976b..be95db54de573e0952114c6e238b95e4d441d547 100644
--- a/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc
@@ -203,9 +203,9 @@ class SyncAutofillDataTypeControllerTest : public testing::Test {
// immediately try to start association and fail (due to missing DB
// thread).
TEST_F(SyncAutofillDataTypeControllerTest, StartWDSReady) {
- FakeWebDataService* web_db =
- static_cast<FakeWebDataService*>(
- AutofillWebDataService::FromBrowserContext(&profile_).get());
+ FakeWebDataService* web_db = static_cast<FakeWebDataService*>(
+ WebDataServiceFactory::GetAutofillWebDataServiceForProfile(
+ &profile_).get());
web_db->LoadDatabase();
autofill_dtc_->LoadModels(
base::Bind(&SyncAutofillDataTypeControllerTest::OnLoadFinished,
@@ -236,9 +236,9 @@ TEST_F(SyncAutofillDataTypeControllerTest, StartWDSNotReady) {
EXPECT_FALSE(last_start_error_.IsSet());
EXPECT_EQ(DataTypeController::MODEL_STARTING, autofill_dtc_->state());
- FakeWebDataService* web_db =
- static_cast<FakeWebDataService*>(
- AutofillWebDataService::FromBrowserContext(&profile_).get());
+ FakeWebDataService* web_db = static_cast<FakeWebDataService*>(
+ WebDataServiceFactory::GetAutofillWebDataServiceForProfile(
+ &profile_).get());
web_db->LoadDatabase();
EXPECT_CALL(*change_processor_, Connect(_,_,_,_,_))
@@ -255,9 +255,9 @@ TEST_F(SyncAutofillDataTypeControllerTest, StartWDSNotReady) {
}
TEST_F(SyncAutofillDataTypeControllerTest, UpdateAutofillCullingSettings) {
- FakeWebDataService* web_db =
- static_cast<FakeWebDataService*>(
- AutofillWebDataService::FromBrowserContext(&profile_).get());
+ FakeWebDataService* web_db = static_cast<FakeWebDataService*>(
+ WebDataServiceFactory::GetAutofillWebDataServiceForProfile(
+ &profile_).get());
// Set up the experiments state.
ProfileSyncService* sync = ProfileSyncServiceFactory::GetForProfile(

Powered by Google App Engine
This is Rietveld 408576698