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 "content/shell/test_runner/mock_web_speech_recognizer.h" | 5 #include "content/shell/test_runner/mock_web_speech_recognizer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 312 |
313 if (task_queue_.empty()) { | 313 if (task_queue_.empty()) { |
314 task_queue_running_ = false; | 314 task_queue_running_ = false; |
315 return; | 315 return; |
316 } | 316 } |
317 | 317 |
318 PostRunTaskFromQueue(); | 318 PostRunTaskFromQueue(); |
319 } | 319 } |
320 | 320 |
321 bool MockWebSpeechRecognizer::HasPendingNewContextTasks() const { | 321 bool MockWebSpeechRecognizer::HasPendingNewContextTasks() const { |
322 for (const auto& task : task_queue_) { | 322 for (auto* task : task_queue_) { |
323 if (task->isNewContextTask()) | 323 if (task->isNewContextTask()) |
324 return true; | 324 return true; |
325 } | 325 } |
326 return false; | 326 return false; |
327 } | 327 } |
328 | 328 |
329 } // namespace test_runner | 329 } // namespace test_runner |
OLD | NEW |