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

Unified Diff: content/test/test_render_frame_host.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created a DRP PageLoadMetricsObserver Created 4 years, 10 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_frame_host.h
diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h
index 34752ce138279a04c376dbe0322b880301d32f36..3460a0985f4c206a7611530d9c7f4e2e32ad049e 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -107,20 +107,26 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
void DidEnforceStrictMixedContentChecking();
// If set, navigations will appear to have cleared the history list in the
// RenderFrame
// (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared).
// False by default.
void set_simulate_history_list_was_cleared(bool cleared) {
simulate_history_list_was_cleared_ = cleared;
}
+ // If set, navigations will appear to have been proxied through the
+ // data reduction proxy.
+ void set_simulate_used_data_reduction_proxy(bool enabled) {
+ simulate_fetch_via_data_reduction_proxy_ = enabled;
+ }
+
// Advances the RenderFrameHost (and through it the RenderFrameHostManager) to
// a state where a new navigation can be committed by a renderer. Currently,
// this simulates a BeforeUnload ACK from the renderer.
// PlzNavigate: this simulates a BeforeUnload ACK from the renderer, and the
// interaction with the IO thread up until the response is ready to commit.
void PrepareForCommit();
// This method does the same as PrepareForCommit.
// PlzNavigate: Beyond doing the same as PrepareForCommit, this method will
// also simulate a server redirect to |redirect_url|. If the URL is empty the
@@ -142,17 +148,17 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
// Computes the page ID for a pending navigation in this RenderFrameHost;
int32_t ComputeNextPageID();
TestRenderFrameHostCreationObserver child_creation_observer_;
std::string contents_mime_type_;
// See set_simulate_history_list_was_cleared() above.
bool simulate_history_list_was_cleared_;
-
+ bool simulate_fetch_via_data_reduction_proxy_;
DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost);
};
} // namespace content
#endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698