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

Side by Side Diff: content/shell/renderer/test_runner/MockWebSpeechRecognizer.cpp

Issue 264003003: test_runner: Move everything else into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/test_runner/MockWebSpeechRecognizer.h" 5 #include "content/shell/renderer/test_runner/MockWebSpeechRecognizer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/shell/renderer/test_runner/WebTestDelegate.h" 8 #include "content/shell/renderer/test_runner/WebTestDelegate.h"
9 #include "third_party/WebKit/public/web/WebSpeechRecognitionResult.h" 9 #include "third_party/WebKit/public/web/WebSpeechRecognitionResult.h"
10 #include "third_party/WebKit/public/web/WebSpeechRecognizerClient.h" 10 #include "third_party/WebKit/public/web/WebSpeechRecognizerClient.h"
11 11
12 using namespace blink; 12 using namespace blink;
13 using namespace std; 13 using namespace std;
14 14
15 namespace WebTestRunner { 15 namespace content {
16 16
17 namespace { 17 namespace {
18 18
19 // 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.
20 typedef void (WebSpeechRecognizerClient::*ClientFunctionPointer)(const WebSpeech RecognitionHandle&); 20 typedef void (WebSpeechRecognizerClient::*ClientFunctionPointer)(const WebSpeech RecognitionHandle&);
21 class ClientCallTask : public MockWebSpeechRecognizer::Task { 21 class ClientCallTask : public MockWebSpeechRecognizer::Task {
22 public: 22 public:
23 ClientCallTask(MockWebSpeechRecognizer* mock, ClientFunctionPointer function ) 23 ClientCallTask(MockWebSpeechRecognizer* mock, ClientFunctionPointer function )
24 : MockWebSpeechRecognizer::Task(mock) 24 : MockWebSpeechRecognizer::Task(mock)
25 , m_function(function) 25 , m_function(function)
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 delete task; 217 delete task;
218 218
219 if (m_object->m_taskQueue.empty()) { 219 if (m_object->m_taskQueue.empty()) {
220 m_object->m_taskQueueRunning = false; 220 m_object->m_taskQueueRunning = false;
221 return; 221 return;
222 } 222 }
223 223
224 m_object->m_delegate->postTask(new StepTask(m_object)); 224 m_object->m_delegate->postTask(new StepTask(m_object));
225 } 225 }
226 226
227 } 227 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/MockWebSpeechRecognizer.h ('k') | content/shell/renderer/test_runner/SpellCheckClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698