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