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

Side by Side Diff: content/shell/renderer/test_runner/test_runner.h

Issue 268723002: Remove MockWebSpeechInputController (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 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_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 // MIDI function to control permission handling. 485 // MIDI function to control permission handling.
486 void SetMIDIAccessorResult(bool result); 486 void SetMIDIAccessorResult(bool result);
487 void SetMIDISysexPermission(bool value); 487 void SetMIDISysexPermission(bool value);
488 488
489 // Grants permission for desktop notifications to an origin 489 // Grants permission for desktop notifications to an origin
490 void GrantWebNotificationPermission(const std::string& origin, 490 void GrantWebNotificationPermission(const std::string& origin,
491 bool permission_granted); 491 bool permission_granted);
492 // Simulates a click on a desktop notification. 492 // Simulates a click on a desktop notification.
493 bool SimulateWebNotificationClick(const std::string& value); 493 bool SimulateWebNotificationClick(const std::string& value);
494 494
495 // Speech input related functions. 495 // Speech recognition related functions.
496 void AddMockSpeechInputResult(const std::string& result,
497 double confidence,
498 const std::string& language);
499 void SetMockSpeechInputDumpRect(bool value);
500 void AddMockSpeechRecognitionResult(const std::string& transcript, 496 void AddMockSpeechRecognitionResult(const std::string& transcript,
501 double confidence); 497 double confidence);
502 void SetMockSpeechRecognitionError(const std::string& error, 498 void SetMockSpeechRecognitionError(const std::string& error,
503 const std::string& message); 499 const std::string& message);
504 bool WasMockSpeechRecognitionAborted(); 500 bool WasMockSpeechRecognitionAborted();
505 501
506 // WebPageOverlay related functions. Permits the adding and removing of only 502 // WebPageOverlay related functions. Permits the adding and removing of only
507 // one opaque overlay. 503 // one opaque overlay.
508 void AddWebPageOverlay(); 504 void AddWebPageOverlay();
509 void RemoveWebPageOverlay(); 505 void RemoveWebPageOverlay();
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 bool use_mock_theme_; 703 bool use_mock_theme_;
708 704
709 base::WeakPtrFactory<TestRunner> weak_factory_; 705 base::WeakPtrFactory<TestRunner> weak_factory_;
710 706
711 DISALLOW_COPY_AND_ASSIGN(TestRunner); 707 DISALLOW_COPY_AND_ASSIGN(TestRunner);
712 }; 708 };
713 709
714 } // namespace content 710 } // namespace content
715 711
716 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 712 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/WebTestProxy.cpp ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698