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

Unified Diff: content/test/web_contents_observer_sanity_checker.h

Issue 1151973005: Bring RFH/RVH unit tests closer to reality of how RF/RV are initialized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix IsRenderFrameLive to be independent of RenderViewHost. Created 5 years, 7 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/web_contents_observer_sanity_checker.h
diff --git a/content/test/web_contents_observer_sanity_checker.h b/content/test/web_contents_observer_sanity_checker.h
index 940b6d216a4794cdbe57debc530c42aa7cfef96d..3c40a1b77b8412ba118ccba533649ca30d2cacf1 100644
--- a/content/test/web_contents_observer_sanity_checker.h
+++ b/content/test/web_contents_observer_sanity_checker.h
@@ -91,6 +91,9 @@ class WebContentsObserverSanityChecker : public WebContentsObserver,
std::set<std::pair<int, int>> live_routes_;
std::set<std::pair<int, int>> deleted_routes_;
+ base::hash_map<std::pair<int, int>, std::string> render_frame_created_stacks_;
+ base::hash_map<std::pair<int, int>, std::string> render_frame_deleted_stacks_;
+
bool web_contents_destroyed_;
DISALLOW_COPY_AND_ASSIGN(WebContentsObserverSanityChecker);

Powered by Google App Engine
This is Rietveld 408576698