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

Side by Side Diff: content/browser/renderer_host/render_widget_host_unittest.cc

Issue 10804031: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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) 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/shared_memory.h" 7 #include "base/shared_memory.h"
8 #include "base/timer.h" 8 #include "base/timer.h"
9 #include "content/browser/browser_thread_impl.h" 9 #include "content/browser/browser_thread_impl.h"
10 #include "content/browser/renderer_host/backing_store.h" 10 #include "content/browser/renderer_host/backing_store.h"
(...skipping 11 matching lines...) Expand all
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #include "ui/base/keycodes/keyboard_codes.h" 23 #include "ui/base/keycodes/keyboard_codes.h"
24 #include "ui/gfx/canvas.h" 24 #include "ui/gfx/canvas.h"
25 25
26 #if defined(USE_AURA) 26 #if defined(USE_AURA)
27 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 27 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
28 #include "ui/aura/env.h" 28 #include "ui/aura/env.h"
29 #endif 29 #endif
30 30
31 using base::TimeDelta; 31 using base::TimeDelta;
32 using content::BackingStore;
32 using content::BrowserThread; 33 using content::BrowserThread;
33 using content::BrowserThreadImpl; 34 using content::BrowserThreadImpl;
34 using content::MockRenderProcessHost; 35 using content::MockRenderProcessHost;
35 using content::NativeWebKeyboardEvent; 36 using content::NativeWebKeyboardEvent;
36 using content::RenderWidgetHost; 37 using content::RenderWidgetHost;
37 using content::RenderWidgetHostImpl; 38 using content::RenderWidgetHostImpl;
38 using WebKit::WebGestureEvent; 39 using WebKit::WebGestureEvent;
39 using WebKit::WebInputEvent; 40 using WebKit::WebInputEvent;
40 using WebKit::WebMouseWheelEvent; 41 using WebKit::WebMouseWheelEvent;
41 42
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 SimulateKeyboardEvent(WebInputEvent::RawKeyDown); 918 SimulateKeyboardEvent(WebInputEvent::RawKeyDown);
918 SimulateKeyboardEvent(WebInputEvent::RawKeyDown); 919 SimulateKeyboardEvent(WebInputEvent::RawKeyDown);
919 SendInputEventACK(WebInputEvent::RawKeyDown, true); 920 SendInputEventACK(WebInputEvent::RawKeyDown, true);
920 921
921 // Wait long enough for first timeout and see if it fired. 922 // Wait long enough for first timeout and see if it fired.
922 MessageLoop::current()->PostDelayedTask( 923 MessageLoop::current()->PostDelayedTask(
923 FROM_HERE, MessageLoop::QuitClosure(), TimeDelta::FromMilliseconds(40)); 924 FROM_HERE, MessageLoop::QuitClosure(), TimeDelta::FromMilliseconds(40));
924 MessageLoop::current()->Run(); 925 MessageLoop::current()->Run();
925 EXPECT_TRUE(host_->unresponsive_timer_fired()); 926 EXPECT_TRUE(host_->unresponsive_timer_fired());
926 } 927 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698