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

Side by Side Diff: components/test_runner/mock_web_speech_recognizer.h

Issue 1499793003: Fix classes that have too many virtuals for inline constructors. Base URL: https://chromium.googlesource.com/chromium/src.git@enable-virtuals-as-complexity
Patch Set: Finish fixing the codebase that's accessible from Linux. 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 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 COMPONENTS_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_ 6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Queue of tasks to be run. 76 // Queue of tasks to be run.
77 std::deque<Task*> task_queue_; 77 std::deque<Task*> task_queue_;
78 bool task_queue_running_; 78 bool task_queue_running_;
79 79
80 WebTestDelegate* delegate_; 80 WebTestDelegate* delegate_;
81 81
82 // Task for stepping the queue. 82 // Task for stepping the queue.
83 class StepTask : public WebMethodTask<MockWebSpeechRecognizer> { 83 class StepTask : public WebMethodTask<MockWebSpeechRecognizer> {
84 public: 84 public:
85 StepTask(MockWebSpeechRecognizer* object) 85 StepTask(MockWebSpeechRecognizer* object);
86 : WebMethodTask<MockWebSpeechRecognizer>(object) {}
87 void RunIfValid() override; 86 void RunIfValid() override;
88 87
89 private: 88 private:
90 DISALLOW_COPY_AND_ASSIGN(StepTask); 89 DISALLOW_COPY_AND_ASSIGN(StepTask);
91 }; 90 };
92 91
93 DISALLOW_COPY_AND_ASSIGN(MockWebSpeechRecognizer); 92 DISALLOW_COPY_AND_ASSIGN(MockWebSpeechRecognizer);
94 }; 93 };
95 94
96 } // namespace test_runner 95 } // namespace test_runner
97 96
98 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_ 97 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_SPEECH_RECOGNIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698