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

Side by Side Diff: chrome/browser/extensions/extension_tts_apitest.cc

Issue 3640001: Refactored TTS extension code so that the platform-specific TTS... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
« no previous file with comments | « chrome/browser/extensions/extension_tts_api_win.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "base/command_line.h" 4 #include "base/command_line.h"
5 #include "chrome/browser/chromeos/cros/cros_mock.h" 5 #include "chrome/browser/chromeos/cros/cros_mock.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 9
10 // This extension API is currently only supported on Chrome OS. 10 // This extension API is currently only supported on Chrome OS.
11 #if defined(OS_CHROMEOS) 11 #if defined(OS_CHROMEOS)
12 #define MAYBE_Tts Tts 12 #define MAYBE_Tts Tts
13 #else 13 #else
14 #define MAYBE_Tts DISABLED_Tts 14 #define MAYBE_Tts DISABLED_Tts
15 #endif 15 #endif
16 16
17 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_Tts) { 17 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_Tts) {
18 CommandLine::ForCurrentProcess()->AppendSwitch( 18 CommandLine::ForCurrentProcess()->AppendSwitch(
19 switches::kEnableExperimentalExtensionApis); 19 switches::kEnableExperimentalExtensionApis);
20 20
21 chromeos::CrosMock crosMock; 21 chromeos::CrosMock crosMock;
22 crosMock.InitMockSpeechSynthesisLibrary(); 22 crosMock.InitMockSpeechSynthesisLibrary();
23 crosMock.SetSpeechSynthesisLibraryExpectations(); 23 crosMock.SetSpeechSynthesisLibraryExpectations();
24 24
25 ASSERT_TRUE(RunExtensionTest("tts")) << message_; 25 ASSERT_TRUE(RunExtensionTest("tts/chromeos")) << message_;
26 } 26 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tts_api_win.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698