OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_CROS_MOCK_SPEECH_SYNTHESIS_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_SPEECH_SYNTHESIS_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_SPEECH_SYNTHESIS_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_SPEECH_SYNTHESIS_LIBRARY_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/cros/speech_synthesis_library.h" | 8 #include "chrome/browser/chromeos/cros/speech_synthesis_library.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 class MockSpeechSynthesisLibrary : public SpeechSynthesisLibrary { | 13 class MockSpeechSynthesisLibrary : public SpeechSynthesisLibrary { |
14 public: | 14 public: |
15 MockSpeechSynthesisLibrary() {} | 15 MockSpeechSynthesisLibrary() {} |
16 virtual ~MockSpeechSynthesisLibrary() {} | 16 virtual ~MockSpeechSynthesisLibrary() {} |
17 MOCK_METHOD1(Speak, bool(const char*)); | 17 MOCK_METHOD1(Speak, bool(const char*)); |
18 MOCK_METHOD1(SetSpeakProperties, bool(const char*)); | 18 MOCK_METHOD1(SetSpeakProperties, bool(const char*)); |
19 MOCK_METHOD0(StopSpeaking, bool(void)); | 19 MOCK_METHOD0(StopSpeaking, bool(void)); |
20 MOCK_METHOD0(IsSpeaking, bool(void)); | 20 MOCK_METHOD0(IsSpeaking, bool(void)); |
21 MOCK_METHOD1(InitTts, void(InitStatusCallback)); | |
22 }; | 21 }; |
23 | 22 |
24 } // namespace chromeos | 23 } // namespace chromeos |
25 | 24 |
26 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_SPEECH_SYNTHESIS_LIBRARY_H_ | 25 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_SPEECH_SYNTHESIS_LIBRARY_H_ |
OLD | NEW |