1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "components/webdata/common/web_data_service_test_util.h" 6 7#include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 8 9using autofill::AutofillWebDataService; 10 11MockWebDataServiceWrapperBase::MockWebDataServiceWrapperBase() { 12} 13 14MockWebDataServiceWrapperBase::~MockWebDataServiceWrapperBase() { 15} 16 17void MockWebDataServiceWrapperBase::Shutdown() { 18} 19 20// TODO(caitkp): This won't scale well. As we get more WebData subclasses, we 21// will probably need a better way to create these mocks rather than passing 22// all the webdatas in. 23MockWebDataServiceWrapper::MockWebDataServiceWrapper( 24 scoped_refptr<AutofillWebDataService> fake_autofill, 25 scoped_refptr<TokenWebData> fake_token) 26 : fake_autofill_web_data_(fake_autofill), 27 fake_token_web_data_(fake_token) { 28} 29 30MockWebDataServiceWrapper::~MockWebDataServiceWrapper() { 31} 32 33scoped_refptr<AutofillWebDataService> 34 MockWebDataServiceWrapper::GetAutofillWebData() { 35 return fake_autofill_web_data_; 36} 37 38scoped_refptr<TokenWebData> MockWebDataServiceWrapper::GetTokenWebData() { 39 return fake_token_web_data_; 40} 41