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

Unified Diff: content/public/test/browser_test_utils.cc

Issue 2849603005: Do not reinvent the wheel / use content APIs to find a frame by name. (Closed)
Patch Set: s/DCHECK_EQ/EXPECT_EQ/g Created 3 years, 8 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/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index 0864b5a2ae4d89bf797a839f21ec40f8e937e24a..8e4f9d955de28a2b99635002b2aa0591b1f5d5de 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -935,7 +935,7 @@ RenderFrameHost* FrameMatchingPredicate(
std::set<RenderFrameHost*> frame_set;
web_contents->ForEachFrame(
base::Bind(&AddToSetIfFrameMatchesPredicate, &frame_set, predicate));
- DCHECK_EQ(1U, frame_set.size());
+ EXPECT_EQ(1U, frame_set.size());
sky 2017/05/01 21:14:09 One comment here. This should really be an ASSERT.
Łukasz Anforowicz 2017/05/01 21:42:31 Good catch - I should have been more careful about
sky 2017/05/01 23:33:33 How about changing the return to: return frame_set
Łukasz Anforowicz 2017/05/02 19:55:48 Done.
return *frame_set.begin();
}
« no previous file with comments | « content/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698