OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/autofill/core/browser/test_autofill_driver.h" | 5 #include "components/autofill/core/browser/test_autofill_driver.h" |
6 | 6 |
7 #include "base/test/sequenced_worker_pool_owner.h" | 7 #include "base/test/sequenced_worker_pool_owner.h" |
8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
9 | 9 |
10 namespace autofill { | 10 namespace autofill { |
11 | 11 |
12 TestAutofillDriver::TestAutofillDriver() | 12 TestAutofillDriver::TestAutofillDriver() |
13 : blocking_pool_owner_( | 13 : blocking_pool_owner_( |
14 new base::SequencedWorkerPoolOwner(4, "TestAutofillDriver")), | 14 new base::SequencedWorkerPoolOwner(4, "TestAutofillDriver")), |
15 url_request_context_(NULL) {} | 15 url_request_context_(NULL) {} |
16 | 16 |
17 TestAutofillDriver::~TestAutofillDriver() {} | 17 TestAutofillDriver::~TestAutofillDriver() { |
| 18 blocking_pool_owner_->pool()->Shutdown(); |
| 19 } |
18 | 20 |
19 bool TestAutofillDriver::IsOffTheRecord() const { | 21 bool TestAutofillDriver::IsOffTheRecord() const { |
20 return false; | 22 return false; |
21 } | 23 } |
22 | 24 |
23 net::URLRequestContextGetter* TestAutofillDriver::GetURLRequestContext() { | 25 net::URLRequestContextGetter* TestAutofillDriver::GetURLRequestContext() { |
24 return url_request_context_; | 26 return url_request_context_; |
25 } | 27 } |
26 | 28 |
27 base::SequencedWorkerPool* TestAutofillDriver::GetBlockingPool() { | 29 base::SequencedWorkerPool* TestAutofillDriver::GetBlockingPool() { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } | 67 } |
66 | 68 |
67 void TestAutofillDriver::RendererShouldPreviewFieldWithValue( | 69 void TestAutofillDriver::RendererShouldPreviewFieldWithValue( |
68 const base::string16& value) { | 70 const base::string16& value) { |
69 } | 71 } |
70 | 72 |
71 void TestAutofillDriver::PopupHidden() { | 73 void TestAutofillDriver::PopupHidden() { |
72 } | 74 } |
73 | 75 |
74 } // namespace autofill | 76 } // namespace autofill |
OLD | NEW |