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 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_SPEECH_SYNTHESIS_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_SPEECH_SYNTHESIS_LIBRARY_H_ 7 #pragma once 8 9 #include "chrome/browser/chromeos/cros/speech_synthesis_library.h" 10 #include "testing/gmock/include/gmock/gmock.h" 11 12 namespace chromeos { 13 14 class MockSpeechSynthesisLibrary : public SpeechSynthesisLibrary { 15 public: 16 MockSpeechSynthesisLibrary() {} 17 virtual ~MockSpeechSynthesisLibrary() {} 18 MOCK_METHOD1(Speak, bool(const char*)); 19 MOCK_METHOD1(SetSpeakProperties, bool(const char*)); 20 MOCK_METHOD0(StopSpeaking, bool(void)); 21 MOCK_METHOD0(IsSpeaking, bool(void)); 22 MOCK_METHOD1(InitTts, void(InitStatusCallback)); 23 }; 24 25 } // namespace chromeos 26 27 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_SPEECH_SYNTHESIS_LIBRARY_H_ 28