| 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 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 std::deque<Task*> task_queue_; | 76 std::deque<Task*> task_queue_; |
| 77 bool task_queue_running_; | 77 bool task_queue_running_; |
| 78 | 78 |
| 79 WebTestDelegate* delegate_; | 79 WebTestDelegate* delegate_; |
| 80 | 80 |
| 81 // Task for stepping the queue. | 81 // Task for stepping the queue. |
| 82 class StepTask : public WebMethodTask<MockWebSpeechRecognizer> { | 82 class StepTask : public WebMethodTask<MockWebSpeechRecognizer> { |
| 83 public: | 83 public: |
| 84 StepTask(MockWebSpeechRecognizer* object) | 84 StepTask(MockWebSpeechRecognizer* object) |
| 85 : WebMethodTask<MockWebSpeechRecognizer>(object) {} | 85 : WebMethodTask<MockWebSpeechRecognizer>(object) {} |
| 86 virtual void RunIfValid() OVERRIDE; | 86 virtual void RunIfValid() override; |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 DISALLOW_COPY_AND_ASSIGN(StepTask); | 89 DISALLOW_COPY_AND_ASSIGN(StepTask); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(MockWebSpeechRecognizer); | 92 DISALLOW_COPY_AND_ASSIGN(MockWebSpeechRecognizer); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace content | 95 } // namespace content |
| 96 | 96 |
| 97 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_ | 97 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_ |
| OLD | NEW |