| 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 } | |
| 20 | 18 |
| 21 bool TestAutofillDriver::IsOffTheRecord() const { | 19 bool TestAutofillDriver::IsOffTheRecord() const { |
| 22 return false; | 20 return false; |
| 23 } | 21 } |
| 24 | 22 |
| 25 net::URLRequestContextGetter* TestAutofillDriver::GetURLRequestContext() { | 23 net::URLRequestContextGetter* TestAutofillDriver::GetURLRequestContext() { |
| 26 return url_request_context_; | 24 return url_request_context_; |
| 27 } | 25 } |
| 28 | 26 |
| 29 base::SequencedWorkerPool* TestAutofillDriver::GetBlockingPool() { | 27 base::SequencedWorkerPool* TestAutofillDriver::GetBlockingPool() { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 } | 65 } |
| 68 | 66 |
| 69 void TestAutofillDriver::RendererShouldPreviewFieldWithValue( | 67 void TestAutofillDriver::RendererShouldPreviewFieldWithValue( |
| 70 const base::string16& value) { | 68 const base::string16& value) { |
| 71 } | 69 } |
| 72 | 70 |
| 73 void TestAutofillDriver::PopupHidden() { | 71 void TestAutofillDriver::PopupHidden() { |
| 74 } | 72 } |
| 75 | 73 |
| 76 } // namespace autofill | 74 } // namespace autofill |
| OLD | NEW |