test_autofill_driver.cc revision a1401311d1ab56c4ed0a474bd38c108f75cb0cd9
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/test/sequenced_worker_pool_owner.h" 8#include "base/threading/sequenced_worker_pool.h" 9 10namespace autofill { 11 12TestAutofillDriver::TestAutofillDriver() 13 : blocking_pool_owner_( 14 new base::SequencedWorkerPoolOwner(4, "TestAutofillDriver")), 15 url_request_context_(NULL) {} 16 17TestAutofillDriver::~TestAutofillDriver() { 18 blocking_pool_owner_->pool()->Shutdown(); 19} 20 21bool TestAutofillDriver::IsOffTheRecord() const { 22 return false; 23} 24 25net::URLRequestContextGetter* TestAutofillDriver::GetURLRequestContext() { 26 return url_request_context_; 27} 28 29base::SequencedWorkerPool* TestAutofillDriver::GetBlockingPool() { 30 return blocking_pool_owner_->pool().get(); 31} 32 33bool TestAutofillDriver::RendererIsAvailable() { 34 return true; 35} 36 37void TestAutofillDriver::SendFormDataToRenderer(int query_id, 38 RendererFormDataAction action, 39 const FormData& form_data) { 40} 41 42void TestAutofillDriver::SendAutofillTypePredictionsToRenderer( 43 const std::vector<FormStructure*>& forms) { 44} 45 46void TestAutofillDriver::RendererShouldAcceptDataListSuggestion( 47 const base::string16& value) { 48} 49 50void TestAutofillDriver::RendererShouldAcceptPasswordAutofillSuggestion( 51 const base::string16& username) { 52} 53 54void TestAutofillDriver::RendererShouldClearFilledForm() { 55} 56 57void TestAutofillDriver::RendererShouldClearPreviewedForm() { 58} 59 60void TestAutofillDriver::SetURLRequestContext( 61 net::URLRequestContextGetter* url_request_context) { 62 url_request_context_ = url_request_context; 63} 64 65void TestAutofillDriver::RendererShouldFillFieldWithValue( 66 const base::string16& value) { 67} 68 69void TestAutofillDriver::RendererShouldPreviewFieldWithValue( 70 const base::string16& value) { 71} 72 73} // namespace autofill 74