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

Side by Side Diff: content/browser/browser_plugin/test_browser_plugin_guest.h

Issue 11312179: C++ readability review for lazyboy@ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync @tott Created 7 years, 1 month 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 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" 9 #include "content/browser/browser_plugin/browser_plugin_guest.h"
10 #include "content/public/test/test_utils.h" 10 #include "content/public/test/test_utils.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void WaitUntilHidden(); 58 void WaitUntilHidden();
59 // Waits until guest exits. 59 // Waits until guest exits.
60 void WaitForExit(); 60 void WaitForExit();
61 // Waits until input is observed. 61 // Waits until input is observed.
62 void WaitForInput(); 62 void WaitForInput();
63 // Waits until 'loadstop' is observed. 63 // Waits until 'loadstop' is observed.
64 void WaitForLoadStop(); 64 void WaitForLoadStop();
65 // Waits until UpdateRect with a particular |view_size| is observed. 65 // Waits until UpdateRect with a particular |view_size| is observed.
66 void WaitForViewSize(const gfx::Size& view_size); 66 void WaitForViewSize(const gfx::Size& view_size);
67 67
68 void set_guest_hang_timeout(const base::TimeDelta& timeout) {
69 guest_hang_timeout_ = timeout;
70 }
71
68 private: 72 private:
69 // Overridden methods from BrowserPluginGuest to intercept in test objects. 73 // Overridden methods from BrowserPluginGuest to intercept in test objects.
70 virtual void SendMessageToEmbedder(IPC::Message* msg) OVERRIDE; 74 virtual void SendMessageToEmbedder(IPC::Message* msg) OVERRIDE;
71 75
72 int update_rect_count_; 76 int update_rect_count_;
73 int damage_buffer_call_count_; 77 int damage_buffer_call_count_;
74 bool exit_observed_; 78 bool exit_observed_;
75 bool focus_observed_; 79 bool focus_observed_;
76 bool blur_observed_; 80 bool blur_observed_;
77 bool advance_focus_observed_; 81 bool advance_focus_observed_;
(...skipping 19 matching lines...) Expand all
97 scoped_refptr<MessageLoopRunner> input_message_loop_runner_; 101 scoped_refptr<MessageLoopRunner> input_message_loop_runner_;
98 scoped_refptr<MessageLoopRunner> load_stop_message_loop_runner_; 102 scoped_refptr<MessageLoopRunner> load_stop_message_loop_runner_;
99 scoped_refptr<MessageLoopRunner> auto_view_size_message_loop_runner_; 103 scoped_refptr<MessageLoopRunner> auto_view_size_message_loop_runner_;
100 104
101 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest); 105 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest);
102 }; 106 };
103 107
104 } // namespace content 108 } // namespace content
105 109
106 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ 110 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698