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

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

Issue 10917225: Browser Plugin: Reload and Stop operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments + merged with ToT/latest patch Created 8 years, 3 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 #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 "base/process_util.h" 9 #include "base/process_util.h"
10 #include "content/browser/browser_plugin/browser_plugin_guest.h" 10 #include "content/browser/browser_plugin/browser_plugin_guest.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // Overridden methods from BrowserPluginGuest to intercept in test objects. 38 // Overridden methods from BrowserPluginGuest to intercept in test objects.
39 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; 39 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
40 virtual void SetFocus(bool focused) OVERRIDE; 40 virtual void SetFocus(bool focused) OVERRIDE;
41 virtual bool ViewTakeFocus(bool reverse) OVERRIDE; 41 virtual bool ViewTakeFocus(bool reverse) OVERRIDE;
42 42
43 // Test utilities to wait for a event we are interested in. 43 // Test utilities to wait for a event we are interested in.
44 // Waits until UpdateRect message is sent from the guest, meaning it is 44 // Waits until UpdateRect message is sent from the guest, meaning it is
45 // ready/rendered. 45 // ready/rendered.
46 void WaitForUpdateRectMsg(); 46 void WaitForUpdateRectMsg();
47 void ResetUpdateRectCount();
47 // Waits until UpdateRect message with a specific size is sent from the guest. 48 // Waits until UpdateRect message with a specific size is sent from the guest.
48 void WaitForUpdateRectMsgWithSize(int width, int height); 49 void WaitForUpdateRectMsgWithSize(int width, int height);
49 // Waits for focus to reach this guest. 50 // Waits for focus to reach this guest.
50 void WaitForFocus(); 51 void WaitForFocus();
51 // Wait for focus to move out of this guest. 52 // Wait for focus to move out of this guest.
52 void WaitForAdvanceFocus(); 53 void WaitForAdvanceFocus();
53 // Wait until the guest is hidden. 54 // Wait until the guest is hidden.
54 void WaitUntilHidden(); 55 void WaitUntilHidden();
55 // Waits until guest crashes. 56 // Waits until guest crashes.
56 void WaitForCrashed(); 57 void WaitForCrashed();
(...skipping 24 matching lines...) Expand all
81 82
82 // A scoped container for notification registries. 83 // A scoped container for notification registries.
83 NotificationRegistrar registrar_; 84 NotificationRegistrar registrar_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest); 86 DISALLOW_COPY_AND_ASSIGN(TestBrowserPluginGuest);
86 }; 87 };
87 88
88 } // namespace content 89 } // namespace content
89 90
90 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_ 91 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_TEST_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698