This source file includes following definitions.
- Shutdown
- fake_web_data_
- GetAutofillWebData
- GetTokenWebData
- GetWebData
#include "components/webdata/common/web_data_service_test_util.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
using autofill::AutofillWebDataService;
MockWebDataServiceWrapperBase::MockWebDataServiceWrapperBase() {
}
MockWebDataServiceWrapperBase::~MockWebDataServiceWrapperBase() {
}
void MockWebDataServiceWrapperBase::Shutdown() {
}
MockWebDataServiceWrapper::MockWebDataServiceWrapper(
scoped_refptr<WebDataService> fake_service,
scoped_refptr<AutofillWebDataService> fake_autofill,
scoped_refptr<TokenWebData> fake_token)
: fake_autofill_web_data_(fake_autofill),
fake_token_web_data_(fake_token),
fake_web_data_(fake_service) {
}
MockWebDataServiceWrapper::~MockWebDataServiceWrapper() {
}
scoped_refptr<AutofillWebDataService>
MockWebDataServiceWrapper::GetAutofillWebData() {
return fake_autofill_web_data_;
}
scoped_refptr<TokenWebData> MockWebDataServiceWrapper::GetTokenWebData() {
return fake_token_web_data_;
}
scoped_refptr<WebDataService> MockWebDataServiceWrapper::GetWebData() {
return fake_web_data_;
}