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

Unified Diff: content/shell/renderer/test_runner/MockWebSpeechInputController.h

Issue 268723002: Remove MockWebSpeechInputController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/renderer/test_runner/MockWebSpeechInputController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/MockWebSpeechInputController.h
diff --git a/content/shell/renderer/test_runner/MockWebSpeechInputController.h b/content/shell/renderer/test_runner/MockWebSpeechInputController.h
deleted file mode 100644
index f213eb25574d3acf6a75d6213948ab22e23b53e5..0000000000000000000000000000000000000000
--- a/content/shell/renderer/test_runner/MockWebSpeechInputController.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBSPEECHINPUTCONTROLLER_H_
-#define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBSPEECHINPUTCONTROLLER_H_
-
-#include <map>
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "content/shell/renderer/test_runner/TestCommon.h"
-#include "content/shell/renderer/test_runner/WebTask.h"
-#include "third_party/WebKit/public/platform/WebRect.h"
-#include "third_party/WebKit/public/web/WebSpeechInputController.h"
-#include "third_party/WebKit/public/web/WebSpeechInputResult.h"
-
-namespace blink {
-class WebSecurityOrigin;
-class WebSpeechInputListener;
-class WebString;
-}
-
-namespace WebTestRunner {
-
-class WebTestDelegate;
-
-// TODO(hans): Remove this once we've stopped running Blink tests that depend
-// on it (crbug.com/223198).
-class MockWebSpeechInputController : public blink::WebSpeechInputController {
-public:
- explicit MockWebSpeechInputController(blink::WebSpeechInputListener*);
- virtual ~MockWebSpeechInputController();
-
- void addMockRecognitionResult(const blink::WebString& result, double confidence, const blink::WebString& language);
- void setDumpRect(bool);
- void clearResults();
- void setDelegate(WebTestDelegate*);
-
- // WebSpeechInputController implementation:
- virtual bool startRecognition(int requestId, const blink::WebRect& elementRect, const blink::WebString& language, const blink::WebString& grammar, const blink::WebSecurityOrigin&) OVERRIDE;
- virtual void cancelRecognition(int requestId) OVERRIDE;
- virtual void stopRecording(int requestId) OVERRIDE;
-
- WebTaskList* taskList() { return &m_taskList; }
-
-private:
- void speechTaskFired();
-
- class SpeechTask : public WebMethodTask<MockWebSpeechInputController> {
- public:
- SpeechTask(MockWebSpeechInputController*);
- void stop();
-
- private:
- virtual void runIfValid() OVERRIDE;
- };
-
- blink::WebSpeechInputListener* m_listener;
-
- WebTaskList m_taskList;
- SpeechTask* m_speechTask;
-
- bool m_recording;
- int m_requestId;
- blink::WebRect m_requestRect;
- std::string m_language;
-
- std::map<std::string, std::vector<blink::WebSpeechInputResult> > m_recognitionResults;
- std::vector<blink::WebSpeechInputResult> m_resultsForEmptyLanguage;
- bool m_dumpRect;
-
- WebTestDelegate* m_delegate;
-
- DISALLOW_COPY_AND_ASSIGN(MockWebSpeechInputController);
-};
-
-}
-
-#endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKWEBSPEECHINPUTCONTROLLER_H_
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/renderer/test_runner/MockWebSpeechInputController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698