| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/memory/weak_ptr.h" | 7 #include "base/memory/weak_ptr.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "chrome/browser/extensions/extension_apitest.h" | 9 #include "chrome/browser/extensions/extension_apitest.h" |
| 10 #include "chrome/browser/speech/extension_api/tts_extension_api.h" | 10 #include "chrome/browser/speech/extension_api/tts_extension_api.h" |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 } | 311 } |
| 312 | 312 |
| 313 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineWordCallbacks) { | 313 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineWordCallbacks) { |
| 314 EXPECT_CALL(mock_platform_impl_, IsSpeaking()); | 314 EXPECT_CALL(mock_platform_impl_, IsSpeaking()); |
| 315 EXPECT_CALL(mock_platform_impl_, StopSpeaking()) | 315 EXPECT_CALL(mock_platform_impl_, StopSpeaking()) |
| 316 .WillRepeatedly(Return(true)); | 316 .WillRepeatedly(Return(true)); |
| 317 | 317 |
| 318 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_word_callbacks")) << message_; | 318 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_word_callbacks")) << message_; |
| 319 } | 319 } |
| 320 | 320 |
| 321 IN_PROC_BROWSER_TEST_F(TtsApiTest, LangMatching) { |
| 322 EXPECT_CALL(mock_platform_impl_, IsSpeaking()); |
| 323 EXPECT_CALL(mock_platform_impl_, StopSpeaking()) |
| 324 .WillRepeatedly(Return(true)); |
| 325 |
| 326 ASSERT_TRUE(RunExtensionTest("tts_engine/lang_matching")) << message_; |
| 327 } |
| 328 |
| 321 // http://crbug.com/122474 | 329 // http://crbug.com/122474 |
| 322 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineApi) { | 330 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineApi) { |
| 323 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_api")) << message_; | 331 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_api")) << message_; |
| 324 } | 332 } |
| OLD | NEW |