test_autofill_driver.cc revision 4e180b6a0b4720a9b8e9e959a882386f690f08ff
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/autofill/core/browser/test_autofill_driver.h" 6 7#include "base/threading/sequenced_worker_pool.h" 8 9namespace autofill { 10 11TestAutofillDriver::TestAutofillDriver(content::WebContents* web_contents) 12 : content::WebContentsObserver(web_contents), 13 blocking_pool_(new base::SequencedWorkerPool(4, "TestAutofillDriver")) {} 14 15TestAutofillDriver::~TestAutofillDriver() { 16 blocking_pool_->Shutdown(); 17} 18 19content::WebContents* TestAutofillDriver::GetWebContents() { 20 return web_contents(); 21} 22 23base::SequencedWorkerPool* TestAutofillDriver::GetBlockingPool() { 24 return blocking_pool_; 25} 26 27bool TestAutofillDriver::RendererIsAvailable() { 28 return true; 29} 30 31void TestAutofillDriver::SetRendererActionOnFormDataReception( 32 RendererFormDataAction action) { 33} 34 35void TestAutofillDriver::SendFormDataToRenderer(int query_id, 36 const FormData& form_data) { 37} 38 39void TestAutofillDriver::SendAutofillTypePredictionsToRenderer( 40 const std::vector<FormStructure*>& forms) { 41} 42 43void TestAutofillDriver::RendererShouldClearFilledForm() { 44} 45 46void TestAutofillDriver::RendererShouldClearPreviewedForm() { 47} 48 49} // namespace autofill 50