ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / components / autofill / core / browser / test_autofill_driver.cc
blob6c978a5fc690df023d80bb17930daa68de72d387
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/autofill/core/browser/test_autofill_driver.h"
7 #include "base/test/sequenced_worker_pool_owner.h"
8 #include "base/threading/sequenced_worker_pool.h"
10 namespace autofill {
12 TestAutofillDriver::TestAutofillDriver()
13 : blocking_pool_owner_(
14 new base::SequencedWorkerPoolOwner(4, "TestAutofillDriver")),
15 url_request_context_(NULL) {}
17 TestAutofillDriver::~TestAutofillDriver() {
18 blocking_pool_owner_->pool()->Shutdown();
21 bool TestAutofillDriver::IsOffTheRecord() const {
22 return false;
25 net::URLRequestContextGetter* TestAutofillDriver::GetURLRequestContext() {
26 return url_request_context_;
29 base::SequencedWorkerPool* TestAutofillDriver::GetBlockingPool() {
30 return blocking_pool_owner_->pool().get();
33 bool TestAutofillDriver::RendererIsAvailable() {
34 return true;
37 void TestAutofillDriver::SendFormDataToRenderer(int query_id,
38 RendererFormDataAction action,
39 const FormData& form_data) {
42 void TestAutofillDriver::PingRenderer() {
45 void TestAutofillDriver::DetectAccountCreationForms(
46 const std::vector<autofill::FormStructure*>& forms) {
49 void TestAutofillDriver::SendAutofillTypePredictionsToRenderer(
50 const std::vector<FormStructure*>& forms) {
53 void TestAutofillDriver::RendererShouldAcceptDataListSuggestion(
54 const base::string16& value) {
57 void TestAutofillDriver::RendererShouldClearFilledForm() {
60 void TestAutofillDriver::RendererShouldClearPreviewedForm() {
63 void TestAutofillDriver::SetURLRequestContext(
64 net::URLRequestContextGetter* url_request_context) {
65 url_request_context_ = url_request_context;
68 void TestAutofillDriver::RendererShouldFillFieldWithValue(
69 const base::string16& value) {
72 void TestAutofillDriver::RendererShouldPreviewFieldWithValue(
73 const base::string16& value) {
76 void TestAutofillDriver::PopupHidden() {
79 } // namespace autofill