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

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

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With this patchset, Chrome runs and exits normally on Linux. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
9 #include "chrome/browser/extensions/extension_tts_api.h" 10 #include "chrome/browser/extensions/extension_tts_api.h"
10 #include "chrome/browser/extensions/extension_tts_api_controller.h" 11 #include "chrome/browser/extensions/extension_tts_api_controller.h"
11 #include "chrome/browser/extensions/extension_tts_api_platform.h" 12 #include "chrome/browser/extensions/extension_tts_api_platform.h"
12 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
13 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 16
16 // Needed for CreateFunctor. 17 // Needed for CreateFunctor.
17 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING 18 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 290
290 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_error")) << message_; 291 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_error")) << message_;
291 } 292 }
292 293
293 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineWordCallbacks) { 294 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineWordCallbacks) {
294 EXPECT_CALL(mock_platform_impl_, StopSpeaking()) 295 EXPECT_CALL(mock_platform_impl_, StopSpeaking())
295 .WillRepeatedly(Return(true)); 296 .WillRepeatedly(Return(true));
296 297
297 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_word_callbacks")) << message_; 298 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_word_callbacks")) << message_;
298 } 299 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698