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