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

Side by Side Diff: chrome/browser/speech/extension_api/tts_extension_apitest.cc

Issue 10581011: Fix TTS extension API language matching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 (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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698