| 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/extensions/extension_tts_api.h" | 10 #include "chrome/browser/speech/extension_api/tts_extension_api.h" |
| 11 #include "chrome/browser/extensions/extension_tts_api_controller.h" | 11 #include "chrome/browser/speech/extension_api/tts_extension_api_controller.h" |
| 12 #include "chrome/browser/extensions/extension_tts_api_platform.h" | 12 #include "chrome/browser/speech/extension_api/tts_extension_api_platform.h" |
| 13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 // Needed for CreateFunctor. | 17 // Needed for CreateFunctor. |
| 18 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING | 18 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING |
| 19 #include "testing/gmock_mutant.h" | 19 #include "testing/gmock_mutant.h" |
| 20 | 20 |
| 21 using ::testing::AnyNumber; | 21 using ::testing::AnyNumber; |
| 22 using ::testing::CreateFunctor; | 22 using ::testing::CreateFunctor; |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_error")) << message_; | 291 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_error")) << message_; |
| 292 } | 292 } |
| 293 | 293 |
| 294 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineWordCallbacks) { | 294 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineWordCallbacks) { |
| 295 EXPECT_CALL(mock_platform_impl_, StopSpeaking()) | 295 EXPECT_CALL(mock_platform_impl_, StopSpeaking()) |
| 296 .WillRepeatedly(Return(true)); | 296 .WillRepeatedly(Return(true)); |
| 297 | 297 |
| 298 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_word_callbacks")) << message_; | 298 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_word_callbacks")) << message_; |
| 299 } | 299 } |
| OLD | NEW |