OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <list> | 5 #include <list> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "content/browser/speech/google_streaming_remote_engine.h" | 11 #include "content/browser/speech/google_streaming_remote_engine.h" |
12 #include "content/browser/speech/speech_recognition_manager_impl.h" | 12 #include "content/browser/speech/speech_recognition_manager_impl.h" |
13 #include "content/browser/speech/speech_recognizer_impl.h" | 13 #include "content/browser/speech/speech_recognizer_impl.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/notification_types.h" | 15 #include "content/public/browser/notification_types.h" |
16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
17 #include "content/public/test/browser_test_utils.h" | 17 #include "content/public/test/browser_test_utils.h" |
| 18 #include "content/public/test/content_browser_test.h" |
| 19 #include "content/public/test/content_browser_test_utils.h" |
18 #include "content/public/test/test_utils.h" | 20 #include "content/public/test/test_utils.h" |
19 #include "content/shell/browser/shell.h" | 21 #include "content/shell/browser/shell.h" |
20 #include "content/test/content_browser_test.h" | |
21 #include "content/test/content_browser_test_utils.h" | |
22 #include "content/test/mock_google_streaming_server.h" | 22 #include "content/test/mock_google_streaming_server.h" |
23 #include "media/audio/mock_audio_manager.h" | 23 #include "media/audio/mock_audio_manager.h" |
24 #include "media/audio/test_audio_input_controller_factory.h" | 24 #include "media/audio/test_audio_input_controller_factory.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 using base::RunLoop; | 27 using base::RunLoop; |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 | 30 |
31 class SpeechRecognitionBrowserTest : | 31 class SpeechRecognitionBrowserTest : |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 IN_PROC_BROWSER_TEST_F(SpeechRecognitionBrowserTest, OneShotRecognition) { | 194 IN_PROC_BROWSER_TEST_F(SpeechRecognitionBrowserTest, OneShotRecognition) { |
195 NavigateToURLBlockUntilNavigationsComplete( | 195 NavigateToURLBlockUntilNavigationsComplete( |
196 shell(), GetTestUrlFromFragment("oneshot"), 2); | 196 shell(), GetTestUrlFromFragment("oneshot"), 2); |
197 | 197 |
198 EXPECT_EQ(kClientDisconnected, streaming_server_state()); | 198 EXPECT_EQ(kClientDisconnected, streaming_server_state()); |
199 EXPECT_EQ("goodresult1", GetPageFragment()); | 199 EXPECT_EQ("goodresult1", GetPageFragment()); |
200 } | 200 } |
201 | 201 |
202 } // namespace content | 202 } // namespace content |
OLD | NEW |