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

Side by Side Diff: content/browser/speech/speech_input_browsertest.cc

Issue 8277018: Move content_switches to content\public\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
11 #include "chrome/test/base/ui_test_utils.h" 11 #include "chrome/test/base/ui_test_utils.h"
12 #include "content/browser/renderer_host/render_view_host.h" 12 #include "content/browser/renderer_host/render_view_host.h"
13 #include "content/browser/speech/speech_input_dispatcher_host.h" 13 #include "content/browser/speech/speech_input_dispatcher_host.h"
14 #include "content/browser/speech/speech_input_manager.h" 14 #include "content/browser/speech/speech_input_manager.h"
15 #include "content/browser/tab_contents/tab_contents.h" 15 #include "content/browser/tab_contents/tab_contents.h"
16 #include "content/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
18 18
19 namespace speech_input { 19 namespace speech_input {
20 class FakeSpeechInputManager; 20 class FakeSpeechInputManager;
21 } 21 }
22 22
23 // This class does not need to be refcounted (typically done by PostTask) since 23 // This class does not need to be refcounted (typically done by PostTask) since
24 // it will outlive the test and gets released only when the test shuts down. 24 // it will outlive the test and gets released only when the test shuts down.
25 // Disabling refcounting here saves a bit of unnecessary code and the factory 25 // Disabling refcounting here saves a bit of unnecessary code and the factory
26 // method can return a plain pointer below as required by the real code. 26 // method can return a plain pointer below as required by the real code.
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 // Make the renderer crash. This should trigger SpeechInputDispatcherHost to 250 // Make the renderer crash. This should trigger SpeechInputDispatcherHost to
251 // cancel all pending sessions. 251 // cancel all pending sessions.
252 GURL test_url("about:crash"); 252 GURL test_url("about:crash");
253 ui_test_utils::NavigateToURL(browser(), test_url); 253 ui_test_utils::NavigateToURL(browser(), test_url);
254 254
255 EXPECT_TRUE(fake_speech_input_manager_.did_cancel_all()); 255 EXPECT_TRUE(fake_speech_input_manager_.did_cancel_all());
256 } 256 }
257 257
258 } // namespace speech_input 258 } // namespace speech_input
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host.cc ('k') | content/browser/tab_contents/render_view_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698