| 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 "components/test_runner/mock_web_speech_recognizer.h" | 5 #include "components/test_runner/mock_web_speech_recognizer.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
| 8 #include "components/test_runner/web_test_delegate.h" | 11 #include "components/test_runner/web_test_delegate.h" |
| 9 #include "third_party/WebKit/public/web/WebSpeechRecognitionResult.h" | 12 #include "third_party/WebKit/public/web/WebSpeechRecognitionResult.h" |
| 10 #include "third_party/WebKit/public/web/WebSpeechRecognizerClient.h" | 13 #include "third_party/WebKit/public/web/WebSpeechRecognizerClient.h" |
| 11 | 14 |
| 12 namespace test_runner { | 15 namespace test_runner { |
| 13 | 16 |
| 14 namespace { | 17 namespace { |
| 15 | 18 |
| 16 // Task class for calling a client function that does not take any parameters. | 19 // Task class for calling a client function that does not take any parameters. |
| 17 typedef void (blink::WebSpeechRecognizerClient::*ClientFunctionPointer)( | 20 typedef void (blink::WebSpeechRecognizerClient::*ClientFunctionPointer)( |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 247 |
| 245 if (object_->task_queue_.empty()) { | 248 if (object_->task_queue_.empty()) { |
| 246 object_->task_queue_running_ = false; | 249 object_->task_queue_running_ = false; |
| 247 return; | 250 return; |
| 248 } | 251 } |
| 249 | 252 |
| 250 object_->delegate_->PostTask(new StepTask(object_)); | 253 object_->delegate_->PostTask(new StepTask(object_)); |
| 251 } | 254 } |
| 252 | 255 |
| 253 } // namespace test_runner | 256 } // namespace test_runner |
| OLD | NEW |