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

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

Issue 3119035: FBTF: Move individual XXXMsg_Params structs to a new file. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix comment Created 10 years, 4 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/keyboard_codes.h" 6 #include "base/keyboard_codes.h"
7 #include "base/scoped_ptr.h" 7 #include "base/scoped_ptr.h"
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/browser/renderer_host/backing_store.h" 11 #include "chrome/browser/renderer_host/backing_store.h"
12 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h" 12 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h"
13 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 13 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
14 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
15 #include "chrome/common/render_messages_params.h"
15 #include "gfx/canvas_skia.h" 16 #include "gfx/canvas_skia.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 18
18 using base::TimeDelta; 19 using base::TimeDelta;
19 20
20 using WebKit::WebInputEvent; 21 using WebKit::WebInputEvent;
21 using WebKit::WebMouseWheelEvent; 22 using WebKit::WebMouseWheelEvent;
22 23
23 namespace gfx { 24 namespace gfx {
24 class Size; 25 class Size;
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 // Start it again to ensure it still works. 698 // Start it again to ensure it still works.
698 EXPECT_FALSE(host_->unresponsive_timer_fired()); 699 EXPECT_FALSE(host_->unresponsive_timer_fired());
699 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); 700 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10));
700 701
701 // Wait long enough for first timeout and see if it fired. 702 // Wait long enough for first timeout and see if it fired.
702 MessageLoop::current()->PostDelayedTask(FROM_HERE, 703 MessageLoop::current()->PostDelayedTask(FROM_HERE,
703 new MessageLoop::QuitTask(), 10); 704 new MessageLoop::QuitTask(), 10);
704 MessageLoop::current()->Run(); 705 MessageLoop::current()->Run();
705 EXPECT_TRUE(host_->unresponsive_timer_fired()); 706 EXPECT_TRUE(host_->unresponsive_timer_fired());
706 } 707 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698