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

Unified Diff: content/test/test_render_view_host.h

Issue 2619063003: Update viewport_meta setting on any navigation. (Closed)
Patch Set: Bring back pending_entry_ null check 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
Index: content/test/test_render_view_host.h
diff --git a/content/test/test_render_view_host.h b/content/test/test_render_view_host.h
index 3865f9738f99319255992cfeb8520d62583c6aaa..4ed9ab6111cdc79d226cee5f094826d05f464af2 100644
--- a/content/test/test_render_view_host.h
+++ b/content/test/test_render_view_host.h
@@ -204,6 +204,10 @@ class TestRenderViewHost
delete_counter_ = delete_counter;
}
+ void set_webkit_preferences_changed_counter(int* counter) {
Charlie Reis 2017/01/12 19:37:54 nit: Please add comments similar to set_delete_cou
aelias_OOO_until_Jul13 2017/01/12 21:19:13 Done.
+ webkit_preferences_changed_counter_ = counter;
+ }
+
// The opener frame route id passed to CreateRenderView().
int opener_frame_route_id() const { return opener_frame_route_id_; }
@@ -221,6 +225,7 @@ class TestRenderViewHost
int proxy_route_id,
const FrameReplicationState& replicated_frame_state,
bool window_was_created_with_opener) override;
+ void OnWebkitPreferencesChanged() override;
private:
FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate);
@@ -242,6 +247,8 @@ class TestRenderViewHost
// See set_delete_counter() above. May be NULL.
int* delete_counter_;
+ int* webkit_preferences_changed_counter_;
+
// See opener_frame_route_id() above.
int opener_frame_route_id_;

Powered by Google App Engine
This is Rietveld 408576698