| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/task.h" | 6 #include "base/task.h" |
| 7 #include "chrome/browser/extensions/extension_apitest.h" | 7 #include "chrome/browser/extensions/extension_apitest.h" |
| 8 #include "chrome/browser/extensions/extension_tts_api.h" | 8 #include "chrome/browser/extensions/extension_tts_api.h" |
| 9 #include "chrome/browser/extensions/extension_tts_api_controller.h" | 9 #include "chrome/browser/extensions/extension_tts_api_controller.h" |
| 10 #include "chrome/browser/extensions/extension_tts_api_platform.h" | 10 #include "chrome/browser/extensions/extension_tts_api_platform.h" |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 } | 295 } |
| 296 | 296 |
| 297 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineWordCallbacks) { | 297 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineWordCallbacks) { |
| 298 EXPECT_CALL(mock_platform_impl_, StopSpeaking()) | 298 EXPECT_CALL(mock_platform_impl_, StopSpeaking()) |
| 299 .WillRepeatedly(Return(true)); | 299 .WillRepeatedly(Return(true)); |
| 300 | 300 |
| 301 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_word_callbacks")) << message_; | 301 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_word_callbacks")) << message_; |
| 302 } | 302 } |
| 303 | 303 |
| 304 #if defined(OS_CHROMEOS) | 304 #if defined(OS_CHROMEOS) |
| 305 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, TtsChromeOs) { | 305 // Fails since v8 roll at r96374: http://crbug.com/92482 |
| 306 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FAILS_TtsChromeOs) { |
| 306 CommandLine::ForCurrentProcess()->AppendSwitch( | 307 CommandLine::ForCurrentProcess()->AppendSwitch( |
| 307 switches::kEnableExperimentalExtensionApis); | 308 switches::kEnableExperimentalExtensionApis); |
| 308 | 309 |
| 309 chromeos::CrosMock crosMock; | 310 chromeos::CrosMock crosMock; |
| 310 crosMock.InitMockSpeechSynthesisLibrary(); | 311 crosMock.InitMockSpeechSynthesisLibrary(); |
| 311 crosMock.SetSpeechSynthesisLibraryExpectations(); | 312 crosMock.SetSpeechSynthesisLibraryExpectations(); |
| 312 | 313 |
| 313 ASSERT_TRUE(RunExtensionTest("tts/chromeos")) << message_; | 314 ASSERT_TRUE(RunExtensionTest("tts/chromeos")) << message_; |
| 314 } | 315 } |
| 315 #endif | 316 #endif |
| OLD | NEW |