Disable firewall check. It takes signifficant time, need to be on FILE thread.
[chromium-blink-merge.git] / components / webdata / common / web_data_service_test_util.cc
blobb1f3429f7ad97033c093138ef8e15ab65fd38f62
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.
5 #include "components/webdata/common/web_data_service_test_util.h"
7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
9 using autofill::AutofillWebDataService;
11 MockWebDataServiceWrapperBase::MockWebDataServiceWrapperBase() {
14 MockWebDataServiceWrapperBase::~MockWebDataServiceWrapperBase() {
17 void MockWebDataServiceWrapperBase::Shutdown() {
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.
23 MockWebDataServiceWrapper::MockWebDataServiceWrapper(
24 scoped_refptr<WebDataService> fake_service,
25 scoped_refptr<AutofillWebDataService> fake_autofill,
26 scoped_refptr<TokenWebData> fake_token)
27 : fake_autofill_web_data_(fake_autofill),
28 fake_token_web_data_(fake_token),
29 fake_web_data_(fake_service) {
32 MockWebDataServiceWrapper::~MockWebDataServiceWrapper() {
35 scoped_refptr<AutofillWebDataService>
36 MockWebDataServiceWrapper::GetAutofillWebData() {
37 return fake_autofill_web_data_;
40 scoped_refptr<TokenWebData> MockWebDataServiceWrapper::GetTokenWebData() {
41 return fake_token_web_data_;
44 scoped_refptr<WebDataService> MockWebDataServiceWrapper::GetWebData() {
45 return fake_web_data_;