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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_host_browsertest.cc

Issue 11777028: GTTF: Fix problems with contents detected by debugallocation: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | content/shell/shell_gtk.cc » ('j') | content/shell/shell_gtk.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/singleton.h" 6 #include "base/memory/singleton.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/test/test_timeouts.h" 8 #include "base/test/test_timeouts.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/browser/browser_plugin/browser_plugin_guest.h" 10 #include "content/browser/browser_plugin/browser_plugin_guest.h"
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 ASSERT_TRUE(start->GetDouble(0, &start_x) && start->GetDouble(1, &start_y)); 895 ASSERT_TRUE(start->GetDouble(0, &start_x) && start->GetDouble(1, &start_y));
896 896
897 // Get a location in the embedder that falls inside the plugin. 897 // Get a location in the embedder that falls inside the plugin.
898 value.reset(rvh->ExecuteJavascriptAndGetValue(string16(), 898 value.reset(rvh->ExecuteJavascriptAndGetValue(string16(),
899 ASCIIToUTF16("dropLocation()"))); 899 ASCIIToUTF16("dropLocation()")));
900 ASSERT_TRUE(value->GetAsList(&end) && end->GetSize() == 2); 900 ASSERT_TRUE(value->GetAsList(&end) && end->GetSize() == 2);
901 double end_x, end_y; 901 double end_x, end_y;
902 ASSERT_TRUE(end->GetDouble(0, &end_x) && end->GetDouble(1, &end_y)); 902 ASSERT_TRUE(end->GetDouble(0, &end_x) && end->GetDouble(1, &end_y));
903 903
904 WebDropData drop_data; 904 WebDropData drop_data;
905 GURL url = GURL("https://www.domain.com/index.html"); 905 GURL url = GURL("https://www.example.com/index.html");
jam 2013/01/08 18:00:55 please use an owner from content/browser/browser_p
906 drop_data.url = url; 906 drop_data.url = url;
907 907
908 // Pretend that the URL is being dragged over the embedder. Start the drag 908 // Pretend that the URL is being dragged over the embedder. Start the drag
909 // from outside the plugin, then move the drag inside the plugin and drop. 909 // from outside the plugin, then move the drag inside the plugin and drop.
910 // This should trigger appropriate messages from the embedder to the guest, 910 // This should trigger appropriate messages from the embedder to the guest,
911 // and end with a drop on the guest. The guest changes title when a drop 911 // and end with a drop on the guest. The guest changes title when a drop
912 // happens. 912 // happens.
913 const string16 expected_title = ASCIIToUTF16("DROPPED"); 913 const string16 expected_title = ASCIIToUTF16("DROPPED");
914 content::TitleWatcher title_watcher(test_guest()->web_contents(), 914 content::TitleWatcher title_watcher(test_guest()->web_contents(),
915 expected_title); 915 expected_title);
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 embedder_code); 1236 embedder_code);
1237 // Check for render view host at position (150, 150) that is outside the 1237 // Check for render view host at position (150, 150) that is outside the
1238 // bounds of our guest, so this would respond with the render view host of the 1238 // bounds of our guest, so this would respond with the render view host of the
1239 // embedder. 1239 // embedder.
1240 test_embedder()->WaitForRenderViewHostAtPosition(150, 150); 1240 test_embedder()->WaitForRenderViewHostAtPosition(150, 150);
1241 ASSERT_EQ(test_embedder()->web_contents()->GetRenderViewHost(), 1241 ASSERT_EQ(test_embedder()->web_contents()->GetRenderViewHost(),
1242 test_embedder()->last_rvh_at_position_response()); 1242 test_embedder()->last_rvh_at_position_response());
1243 } 1243 }
1244 1244
1245 } // namespace content 1245 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/shell/shell_gtk.cc » ('j') | content/shell/shell_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698