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

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

Issue 2393343002: Split ExtensionTestObserver and move to //extensions. (Closed)
Patch Set: fix bug in ActivityLogApiTest.TriggerEvent Created 4 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
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 <vector> 5 #include <vector>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "chrome/browser/extensions/component_loader.h" 14 #include "chrome/browser/extensions/component_loader.h"
15 #include "chrome/browser/extensions/extension_apitest.h" 15 #include "chrome/browser/extensions/extension_apitest.h"
16 #include "chrome/browser/extensions/extension_service.h" 16 #include "chrome/browser/extensions/extension_service.h"
17 #include "chrome/browser/speech/extension_api/tts_extension_api.h" 17 #include "chrome/browser/speech/extension_api/tts_extension_api.h"
18 #include "chrome/browser/speech/tts_controller.h" 18 #include "chrome/browser/speech/tts_controller.h"
19 #include "chrome/browser/speech/tts_platform.h" 19 #include "chrome/browser/speech/tts_platform.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
22 #include "content/public/test/test_utils.h" 22 #include "content/public/test/test_utils.h"
23 #include "extensions/browser/extension_system.h" 23 #include "extensions/browser/extension_system.h"
24 #include "extensions/browser/notification_types.h"
24 #include "net/base/network_change_notifier.h" 25 #include "net/base/network_change_notifier.h"
25 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
26 #include "testing/gmock_mutant.h" 27 #include "testing/gmock_mutant.h"
27 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
28 29
29 using ::testing::AnyNumber; 30 using ::testing::AnyNumber;
30 using ::testing::CreateFunctor; 31 using ::testing::CreateFunctor;
31 using ::testing::DoAll; 32 using ::testing::DoAll;
32 using ::testing::Invoke; 33 using ::testing::Invoke;
33 using ::testing::InSequence; 34 using ::testing::InSequence;
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // Test should fail when offline. 453 // Test should fail when offline.
453 ASSERT_FALSE(RunExtensionTest("tts_engine/network_speech_engine")); 454 ASSERT_FALSE(RunExtensionTest("tts_engine/network_speech_engine"));
454 } 455 }
455 456
456 // http://crbug.com/122474 457 // http://crbug.com/122474
457 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineApi) { 458 IN_PROC_BROWSER_TEST_F(TtsApiTest, EngineApi) {
458 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_api")) << message_; 459 ASSERT_TRUE(RunExtensionTest("tts_engine/engine_api")) << message_;
459 } 460 }
460 461
461 } // namespace extensions 462 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698