OLD | NEW |
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 } |
OLD | NEW |