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

Unified Diff: webkit/glue/context_menu_unittest.cc

Issue 200054: Hook up WebFrameClient, replacing many WebViewDelegate methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « webkit/glue/chromium_bridge_impl.cc ('k') | webkit/glue/cpp_bound_class_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/context_menu_unittest.cc
===================================================================
--- webkit/glue/context_menu_unittest.cc (revision 25715)
+++ webkit/glue/context_menu_unittest.cc (working copy)
@@ -35,13 +35,12 @@
TEST_F(ContextMenuCapturing, ContextMenuCapturing) {
// Make sure we have no stored mouse event state
- WebViewDelegate* raw_delegate = test_shell_->webView()->GetDelegate();
- TestWebViewDelegate* test_delegate = static_cast<TestWebViewDelegate*>(raw_delegate);
+ TestWebViewDelegate* test_delegate = test_shell_->delegate();
test_delegate->clear_captured_context_menu_events();
EXPECT_EQ(0U, test_delegate->captured_context_menu_events().size());
- std::wstring test_url = GetTestURL(iframes_data_dir_, "testiframe.html");
- test_shell_->LoadURL(test_url.c_str());
+ GURL test_url = GetTestURL(iframes_data_dir_, "testiframe.html");
+ test_shell_->LoadURL(test_url);
test_shell_->WaitTestFinished();
// Create a right click in the center of the iframe. (I'm hoping this will
« no previous file with comments | « webkit/glue/chromium_bridge_impl.cc ('k') | webkit/glue/cpp_bound_class_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698