Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: components/autofill/core/browser/test_autofill_driver.cc

Issue 1417353006: Tests: Simplify SequencedWorkerPoolOwner, call Shutdown on destructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adjust formatting and rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698