summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_tts_apitest.cc
diff options
context:
space:
mode:
authordtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 22:54:02 +0000
committerdtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 22:54:02 +0000
commit30f0ead27c120f784cb0b81d7d6852e0bdcac421 (patch)
treeee35d6344284a084eeb7c788c6aee37d5bdb8736 /chrome/browser/extensions/extension_tts_apitest.cc
parent0406838d8bcaf6100c84761e24de94952d87beb5 (diff)
downloadchromium_src-30f0ead27c120f784cb0b81d7d6852e0bdcac421.zip
chromium_src-30f0ead27c120f784cb0b81d7d6852e0bdcac421.tar.gz
chromium_src-30f0ead27c120f784cb0b81d7d6852e0bdcac421.tar.bz2
Initial TTS implementation on Mac and Windows.BUG=none.TEST=base extension test. Currently no mocking for the native TTS api's. Manually tested engines with ChromeVox (navigating around a page, expected interrupts, stopping speech, etc.).
Review URL: http://codereview.chromium.org/3149027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_tts_apitest.cc')
-rw-r--r--chrome/browser/extensions/extension_tts_apitest.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/chrome/browser/extensions/extension_tts_apitest.cc b/chrome/browser/extensions/extension_tts_apitest.cc
index 5acda10..b1a035b 100644
--- a/chrome/browser/extensions/extension_tts_apitest.cc
+++ b/chrome/browser/extensions/extension_tts_apitest.cc
@@ -7,20 +7,15 @@
#include "chrome/common/chrome_switches.h"
#include "testing/gmock/include/gmock/gmock.h"
-// This extension API is currently only supported on Chrome OS.
-#if defined(OS_CHROMEOS)
-#define MAYBE_Tts Tts
-#else
-#define MAYBE_Tts DISABLED_Tts
-#endif
-
-IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_Tts) {
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Tts) {
CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableExperimentalExtensionApis);
+ #if defined(OS_CHROMEOS)
chromeos::CrosMock crosMock;
crosMock.InitMockSpeechSynthesisLibrary();
crosMock.SetSpeechSynthesisLibraryExpectations();
+ #endif
ASSERT_TRUE(RunExtensionTest("tts")) << message_;
}