OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/version.h" | 8 #include "base/version.h" |
9 #include "chrome/browser/component_updater/test/test_configurator.h" | 9 #include "chrome/browser/component_updater/test/test_configurator.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 123 } |
124 | 124 |
125 void TestConfigurator::SetQuitClosure(const base::Closure& quit_closure) { | 125 void TestConfigurator::SetQuitClosure(const base::Closure& quit_closure) { |
126 quit_closure_ = quit_closure; | 126 quit_closure_ = quit_closure; |
127 } | 127 } |
128 | 128 |
129 void TestConfigurator::SetInitialDelay(int seconds) { | 129 void TestConfigurator::SetInitialDelay(int seconds) { |
130 initial_time_ = seconds; | 130 initial_time_ = seconds; |
131 } | 131 } |
132 | 132 |
| 133 scoped_refptr<base::SequencedTaskRunner> |
| 134 TestConfigurator::GetSequencedTaskRunner() const { |
| 135 return content::BrowserThread::GetBlockingPool() |
| 136 ->GetSequencedTaskRunnerWithShutdownBehavior( |
| 137 content::BrowserThread::GetBlockingPool()->GetSequenceToken(), |
| 138 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); |
| 139 } |
| 140 |
| 141 scoped_refptr<base::SingleThreadTaskRunner> |
| 142 TestConfigurator::GetSingleThreadTaskRunner() const { |
| 143 return content::BrowserThread::GetMessageLoopProxyForThread( |
| 144 content::BrowserThread::FILE); |
| 145 } |
| 146 |
133 } // namespace component_updater | 147 } // namespace component_updater |
OLD | NEW |