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

Unified Diff: content/browser/browser_plugin/browser_plugin_host_browsertest.cc

Issue 10965048: [BrowserTag] Send dib info with NavigateGuest message, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync @tott, correct rebase, bring back two lost comments from previous rounds 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_plugin/browser_plugin_host_browsertest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
index 86d62e294ec089bb39e04f94b53b783054f87f88..d868e8f70820f021158778d0bed192bd9dc87623 100644
--- a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
+++ b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
@@ -303,10 +303,9 @@ IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, NavigateAfterResize) {
RenderViewHostImpl* rvh = static_cast<RenderViewHostImpl*>(
embedder_web_contents->GetRenderViewHost());
- int nxt_width = 100;
- int nxt_height = 200;
+ const gfx::Size nxt_size = gfx::Size(100, 200);
rvh->ExecuteJavascriptAndGetValue(string16(), ASCIIToUTF16(
- StringPrintf("SetSize(%d, %d);", nxt_width, nxt_height)));
+ StringPrintf("SetSize(%d, %d);", nxt_size.width(), nxt_size.height())));
rvh->ExecuteJavascriptAndGetValue(string16(), ASCIIToUTF16(
StringPrintf("SetSrc('%s');", kHTMLForGuest)));
@@ -330,10 +329,9 @@ IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, NavigateAfterResize) {
TestBrowserPluginGuest* test_guest = static_cast<TestBrowserPluginGuest*>(
test_guest_web_contents->GetBrowserPluginGuest());
-
- // Wait for the guest to send an UpdateRectMsg, the dimensions should be
- // 100 x 200.
- test_guest->WaitForUpdateRectMsgWithSize(nxt_width, nxt_height);
+ // Wait for the guest to receive a damage buffer of size 100x200.
+ // This means the guest will be painted properly at that size.
+ test_guest->WaitForDamageBufferWithSize(nxt_size);
}
IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, AdvanceFocus) {
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | content/browser/browser_plugin/test_browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698