test_autofill_driver.cc revision f2477e01787aa58f445919b809d89e252beef54f
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 url_request_context_(NULL) {} 15 16TestAutofillDriver::~TestAutofillDriver() { 17 blocking_pool_->Shutdown(); 18} 19 20bool TestAutofillDriver::IsOffTheRecord() const { 21 return false; 22} 23 24net::URLRequestContextGetter* TestAutofillDriver::GetURLRequestContext() { 25 return url_request_context_; 26} 27 28content::WebContents* TestAutofillDriver::GetWebContents() { 29 return web_contents(); 30} 31 32base::SequencedWorkerPool* TestAutofillDriver::GetBlockingPool() { 33 return blocking_pool_; 34} 35 36bool TestAutofillDriver::RendererIsAvailable() { 37 return true; 38} 39 40void TestAutofillDriver::SetRendererActionOnFormDataReception( 41 RendererFormDataAction action) { 42} 43 44void TestAutofillDriver::SendFormDataToRenderer(int query_id, 45 const FormData& form_data) { 46} 47 48void TestAutofillDriver::SendAutofillTypePredictionsToRenderer( 49 const std::vector<FormStructure*>& forms) { 50} 51 52void TestAutofillDriver::RendererShouldAcceptDataListSuggestion( 53 const base::string16& value) { 54} 55 56void TestAutofillDriver::RendererShouldAcceptPasswordAutofillSuggestion( 57 const base::string16& username) { 58} 59 60void TestAutofillDriver::RendererShouldClearFilledForm() { 61} 62 63void TestAutofillDriver::RendererShouldClearPreviewedForm() { 64} 65 66void TestAutofillDriver::SetURLRequestContext( 67 net::URLRequestContextGetter* url_request_context) { 68 url_request_context_ = url_request_context; 69} 70 71void TestAutofillDriver::RendererShouldSetNodeText( 72 const base::string16& value) { 73} 74 75} // namespace autofill 76