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

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

Issue 9808024: Move TTS extension API to chrome/browser/speech/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos compile error, rebase Created 8 years, 9 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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_api_win.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698