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

Unified Diff: content/test/test_render_view_host.cc

Issue 2619063003: Update viewport_meta setting on any navigation. (Closed)
Patch Set: Another EXPECT_EQ -> EXPECT_FALSE Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_view_host.cc
diff --git a/content/test/test_render_view_host.cc b/content/test/test_render_view_host.cc
index 49a80a0d8bf76a081f818b1bc50bf8353b0ce2e1..b03f7b89436d274fd7310f1dd92e87918c55bbcc 100644
--- a/content/test/test_render_view_host.cc
+++ b/content/test/test_render_view_host.cc
@@ -239,6 +239,7 @@ TestRenderViewHost::TestRenderViewHost(
swapped_out,
false /* has_initialized_audio_host */),
delete_counter_(nullptr),
+ webkit_preferences_changed_counter_(nullptr),
opener_frame_route_id_(MSG_ROUTING_NONE) {
// TestRenderWidgetHostView installs itself into this->view_ in its
// constructor, and deletes itself when TestRenderWidgetHostView::Destroy() is
@@ -294,6 +295,12 @@ WebPreferences TestRenderViewHost::TestComputeWebkitPrefs() {
return ComputeWebkitPrefs();
}
+void TestRenderViewHost::OnWebkitPreferencesChanged() {
+ RenderViewHostImpl::OnWebkitPreferencesChanged();
+ if (webkit_preferences_changed_counter_)
+ ++*webkit_preferences_changed_counter_;
+}
+
void TestRenderViewHost::TestOnStartDragging(
const DropData& drop_data) {
blink::WebDragOperationsMask drag_operation = blink::WebDragOperationEvery;
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698